Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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.0008539/0.0008539, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001394/0.001394, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.913/0.913, allocations: 173.3 MB / 200.4 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] 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.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.164e-05/2.344e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003821/0.003844, allocations: 2.049 MB / 320.5 MB, free: 4.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009564/0.004801, allocations: 0.5376 MB / 321 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.811e-05/0.004899, allocations: 0 / 321 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.005027, allocations: 19.8 kB / 321 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.005134, allocations: 47.56 kB / 321.1 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.005427, allocations: 43.88 kB / 321.1 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.005685, allocations: 167.1 kB / 321.3 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.00588, allocations: 40.92 kB / 321.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002111/0.006091, allocations: 103.7 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001258/0.006217, allocations: 43.83 kB / 321.5 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.006255, allocations: 12 kB / 321.5 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.118e-05/0.006336, allocations: 20 kB / 321.5 MB, free: 3.246 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.74e-05/0.006373, allocations: 23.91 kB / 321.5 MB, free: 3.223 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.627e-05/0.00644, allocations: 51.84 kB / 321.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002607/0.0067, allocations: 167.5 kB / 321.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.006704, allocations: 0 / 321.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.006705, allocations: 0 / 321.8 MB, free: 3.008 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.00671, allocations: 0 / 321.8 MB, free: 3.008 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006189/0.007329, allocations: 365.9 kB / 322.1 MB, free: 2.617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.007379, allocations: 16.91 kB / 322.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.082e-05/0.00743, allocations: 42.75 kB / 322.2 MB, free: 2.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.007525, allocations: 16.84 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.007772, allocations: 148.5 kB / 322.3 MB, free: 2.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.649e-05/0.007789, allocations: 8.609 kB / 322.3 MB, free: 2.359 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.107e-05/0.00781, allocations: 12.38 kB / 322.3 MB, free: 2.348 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.008078, allocations: 141.8 kB / 322.5 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.008088, allocations: 192 / 322.5 MB, free: 2.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.008106, allocations: 16.06 kB / 322.5 MB, free: 2.184 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.008113, allocations: 4 kB / 322.5 MB, free: 2.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.008303, allocations: 76.66 kB / 322.6 MB, free: 2.105 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008063/0.00911, allocations: 474.8 kB / 323 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003067/0.009416, allocations: 82.62 kB / 323.1 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.747e-05/0.009494, allocations: 28.92 kB / 323.2 MB, free: 1.465 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.009509, allocations: 7.984 kB / 323.2 MB, free: 1.457 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.588e-05/0.009535, allocations: 34.5 kB / 323.2 MB, free: 1.414 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.009537, allocations: 4 kB / 323.2 MB, free: 1.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0006617/0.0102, allocations: 174.3 kB / 323.4 MB, free: 1.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.01023, allocations: 51.41 kB / 323.4 MB, free: 1.168 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.01036, allocations: 145.8 kB / 323.6 MB, free: 1.016 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.01037, allocations: 25.7 kB / 323.6 MB, free: 0.9844 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.01071, allocations: 132.1 kB / 323.7 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.01072, allocations: 19.8 kB / 323.7 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.01078, allocations: 25.7 kB / 323.8 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.01087, allocations: 318.8 kB / 324.1 MB, free: 488 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.134e-05/0.01094, allocations: 19.98 kB / 324.1 MB, free: 468 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.599e-05/0.01102, allocations: 50.5 kB / 324.1 MB, free: 408 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001368/0.01116, allocations: 74.5 kB / 324.2 MB, free: 324 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.01116, allocations: 0 / 324.2 MB, free: 324 kB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000274/0.01143, allocations: 138.3 kB / 324.3 MB, free: 176 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.01145, allocations: 4 kB / 324.4 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.01145, allocations: 0 / 324.4 MB, free: 172 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001874/0.01164, allocations: 48.83 kB / 324.4 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.362e-05/0.01171, allocations: 8 kB / 324.4 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.01322, allocations: 1.582 MB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.49e-05/0.0133, allocations: 12.02 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.608e-06/0.01331, allocations: 0 / 326 MB, free: 14.41 MB / 298.7 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.01343, allocations: 125 kB / 326.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.01345, allocations: 7.953 kB / 326.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.768e-05/0.01347, allocations: 24.7 kB / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.01347, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-06/0.01347, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.01347, allocations: 0 / 326.2 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.01362, allocations: 168.7 kB / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.01362, allocations: 3.938 kB / 326.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.142e-05/0.01366, allocations: 7.984 kB / 326.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.175e-05/0.01375, allocations: 40.78 kB / 326.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/0.01376, allocations: 3.938 kB / 326.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009303/0.01469, allocations: 1.574 MB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.01469, allocations: 3.938 kB / 328 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00018/0.01487, allocations: 212.3 kB / 328.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.19e-05/0.01489, allocations: 15.94 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.224e-06/0.01489, allocations: 0 / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.207e-05/0.01495, allocations: 4 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.323e-05/0.01498, allocations: 7.984 kB / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.01498, allocations: 0 / 328.2 MB, free: 12.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.263e-05/0.01504, allocations: 117.8 kB / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01504, allocations: 0 / 328.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.01526, allocations: 40.08 kB / 328.3 MB, free: 11.88 MB / 298.7 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004917/0.01576, allocations: 0.7444 MB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.01602, allocations: 190.5 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01602, allocations: 0 / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001046/0.01612, allocations: 154.7 kB / 329.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000183/0.01631, allocations: 16.25 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001206/0.01751, allocations: 1.694 MB / 331.1 MB, free: 8.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.174e-05/0.01758, allocations: 94.27 kB / 331.2 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.163e-05/0.01762, allocations: 4.5 kB / 331.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.26e-05/0.01766, allocations: 36.48 kB / 331.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01766, allocations: 4 kB / 331.3 MB, free: 8.777 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.03747, allocations: 3.603 MB / 334.9 MB, free: 5.301 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.718/7.755, allocations: 10.22 kB / 334.9 MB, free: 5.297 MB / 298.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.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: 9.486394825391471]