Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001629/0.001629, allocations: 119.3 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001925/0.001925, allocations: 186.9 kB / 20.73 MB, free: 2.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 225.6 MB / 249.1 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 51.91 kB / 365.6 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1002, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004397/0.1046, allocations: 3.003 MB / 420.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001288/0.1059, allocations: 0.6855 MB / 421.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.106, allocations: 7.938 kB / 421.5 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.1062, allocations: 51.44 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.1063, allocations: 107 kB / 421.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.1066, allocations: 99.8 kB / 421.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.107, allocations: 410.2 kB / 422.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.1072, allocations: 71.12 kB / 422.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002239/0.1074, allocations: 155.5 kB / 422.4 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001948/0.1076, allocations: 159.3 kB / 422.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.092e-05/0.1077, allocations: 32 kB / 422.6 MB, free: 7.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.795e-05/0.1077, allocations: 32 kB / 422.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.809e-05/0.1078, allocations: 75.69 kB / 422.7 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001731/0.108, allocations: 179.1 kB / 422.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004252/0.1084, allocations: 390.4 kB / 423.2 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1084, allocations: 4 kB / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1084, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.113e-05/0.1084, allocations: 0 / 423.2 MB, free: 7.148 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001045/0.1095, allocations: 0.6389 MB / 423.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.1095, allocations: 15.89 kB / 423.9 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.042e-05/0.1096, allocations: 58.73 kB / 423.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.523e-05/0.1097, allocations: 40.7 kB / 424 MB, free: 6.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.11, allocations: 283.7 kB / 424.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1101, allocations: 20.94 kB / 424.3 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.975e-05/0.1101, allocations: 32.38 kB / 424.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.1106, allocations: 261 kB / 424.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1106, allocations: 0 / 424.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.1106, allocations: 19.88 kB / 424.6 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.1107, allocations: 4 kB / 424.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004662/0.1111, allocations: 226.1 kB / 424.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.1128, allocations: 0.9642 MB / 425.8 MB, free: 4.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005217/0.1133, allocations: 287.7 kB / 426 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002057/0.1135, allocations: 92.81 kB / 426.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.1135, allocations: 4 kB / 426.1 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.1136, allocations: 34.56 kB / 426.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.222e-06/0.1136, allocations: 0 / 426.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001274/0.1148, allocations: 0.5637 MB / 426.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.642e-05/0.1149, allocations: 55.41 kB / 426.8 MB, free: 3.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.1152, allocations: 258.6 kB / 427 MB, free: 3.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.1152, allocations: 29.7 kB / 427.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001401/0.1153, allocations: 184.2 kB / 427.3 MB, free: 2.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.481e-05/0.1154, allocations: 79.36 kB / 427.3 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.219e-05/0.1155, allocations: 41.94 kB / 427.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.1156, allocations: 334.8 kB / 427.7 MB, free: 2.363 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.1158, allocations: 80.42 kB / 427.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002137/0.116, allocations: 108.2 kB / 427.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003764/0.1164, allocations: 187 kB / 428.1 MB, free: 1.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1164, allocations: 8 kB / 428.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006254/0.117, allocations: 314.8 kB / 428.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1171, allocations: 4 kB / 428.4 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1171, allocations: 3.984 kB / 428.4 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/0.1174, allocations: 73.73 kB / 428.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001827/0.1175, allocations: 39.92 kB / 428.5 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/0.12, allocations: 3.052 MB / 431.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001767/0.1202, allocations: 27.86 kB / 431.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.1202, allocations: 12 kB / 431.6 MB, free: 14.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.1204, allocations: 143.9 kB / 431.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.1204, allocations: 23.86 kB / 431.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.261e-05/0.1205, allocations: 38.16 kB / 431.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1205, allocations: 0 / 431.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.1205, allocations: 4 kB / 431.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.1205, allocations: 3.938 kB / 431.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1215, allocations: 0.6874 MB / 432.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.1215, allocations: 0 / 432.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001299/0.1216, allocations: 31.91 kB / 432.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001791/0.1218, allocations: 69.67 kB / 432.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.1218, allocations: 8 kB / 432.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002391/0.1242, allocations: 3.04 MB / 435.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1242, allocations: 0 / 435.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.1248, allocations: 379 kB / 436 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.141e-05/0.1249, allocations: 104.9 kB / 436.1 MB, free: 9.234 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.1249, allocations: 7.984 kB / 436.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.1251, allocations: 23.98 kB / 436.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.283e-05/0.1252, allocations: 24.16 kB / 436.2 MB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.1252, allocations: 12 kB / 436.2 MB, free: 9.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002298/0.1255, allocations: 190 kB / 436.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1255, allocations: 3.938 kB / 436.4 MB, free: 8.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003605/0.1258, allocations: 95.83 kB / 436.5 MB, free: 8.883 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000953/0.1268, allocations: 0.9144 MB / 437.4 MB, free: 7.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007447/0.1275, allocations: 437.1 kB / 437.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1275, allocations: 0 / 437.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004159/0.1279, allocations: 344.3 kB / 438.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.1283, allocations: 54.69 kB / 438.2 MB, free: 7.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.1317, allocations: 2.707 MB / 440.9 MB, free: 4.258 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.1321, allocations: 0.7678 MB / 441.7 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.583e-05/0.1322, allocations: 18.3 kB / 441.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.1323, allocations: 95.34 kB / 441.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1323, allocations: 0 / 441.8 MB, free: 3.352 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2071/0.3394, allocations: 6.457 MB / 448.2 MB, free: 30.96 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.06, allocations: 13.64 kB / 448.2 MB, free: 30.96 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.643888416234404]