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.001132/0.001132, allocations: 76.06 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.001053/0.001053, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.883/0.883, allocations: 173.4 MB / 200.4 MB, free: 9.453 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.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 1.693e-06/1.693e-06, allocations: 0 / 318.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/2.109e-05, allocations: 2.281 kB / 318.4 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00293/0.002951, allocations: 2.776 MB / 321.2 MB, free: 3.422 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009486/0.0039, allocations: 0.6738 MB / 321.9 MB, free: 2.742 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.004041, allocations: 7.938 kB / 321.9 MB, free: 2.734 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001854/0.004226, allocations: 59.44 kB / 321.9 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.00439, allocations: 107 kB / 322 MB, free: 2.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.004667, allocations: 83.88 kB / 322.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003488/0.005016, allocations: 433.9 kB / 322.6 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.005191, allocations: 76.52 kB / 322.6 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003416/0.005533, allocations: 227.5 kB / 322.8 MB, free: 1.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001874/0.00572, allocations: 119.7 kB / 323 MB, free: 1.645 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.244e-05/0.005782, allocations: 32 kB / 323 MB, free: 1.613 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.059e-05/0.005833, allocations: 32 kB / 323 MB, free: 1.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.054e-05/0.005904, allocations: 75.67 kB / 323.1 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.006037, allocations: 115.8 kB / 323.2 MB, free: 1.395 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004521/0.006489, allocations: 406.7 kB / 323.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.006492, allocations: 0 / 323.6 MB, free: 0.9961 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.006493, allocations: 4 kB / 323.6 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.984e-06/0.0065, allocations: 0 / 323.6 MB, free: 0.9922 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009541/0.007454, allocations: 0.563 MB / 324.2 MB, free: 412 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.709e-05/0.007511, allocations: 11.97 kB / 324.2 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.291e-05/0.007594, allocations: 70.72 kB / 324.3 MB, free: 320 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.098e-05/0.007665, allocations: 36.7 kB / 324.3 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003405/0.008005, allocations: 225.1 kB / 324.5 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.018e-05/0.008026, allocations: 21.03 kB / 324.5 MB, free: 8 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.008087, allocations: 28.42 kB / 324.6 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004172/0.008504, allocations: 412.8 kB / 325 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.008515, allocations: 4.172 kB / 325 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.00854, allocations: 20.12 kB / 325 MB, free: 15.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.008548, allocations: 8 kB / 325 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000307/0.008855, allocations: 214.5 kB / 325.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.009916, allocations: 0.8525 MB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.01025, allocations: 202.6 kB / 326.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.01037, allocations: 96.8 kB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.567e-05/0.01039, allocations: 4 kB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.264e-05/0.01041, allocations: 38.56 kB / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.01041, allocations: 0 / 326.4 MB, free: 14.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.000716/0.01113, allocations: 414.2 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.75e-05/0.01116, allocations: 55.34 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.01133, allocations: 257.9 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.01135, allocations: 33.7 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000365/0.01172, allocations: 196.2 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.01175, allocations: 67.39 kB / 327.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.417e-05/0.01181, allocations: 49.88 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.682e-05/0.01189, allocations: 330.8 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.01201, allocations: 76.42 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000121/0.01213, allocations: 103.5 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.01235, allocations: 191 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.01236, allocations: 4 kB / 328.1 MB, free: 12.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003878/0.01274, allocations: 314.9 kB / 328.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.01276, allocations: 12 kB / 328.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.01277, allocations: 7.984 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/0.01296, allocations: 73.67 kB / 328.5 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.01306, allocations: 35.92 kB / 328.6 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001458/0.01452, allocations: 2.829 MB / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.439e-05/0.01462, allocations: 31.8 kB / 331.4 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.01463, allocations: 12 kB / 331.4 MB, free: 8.652 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 (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 9.488e-05/0.01472, allocations: 133.8 kB / 331.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.01476, allocations: 31.92 kB / 331.6 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.941e-05/0.01478, allocations: 34.27 kB / 331.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.01479, allocations: 0 / 331.6 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.01479, allocations: 4 kB / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.0148, allocations: 0 / 331.6 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005983/0.01539, allocations: 0.624 MB / 332.3 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.0154, allocations: 4 kB / 332.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.042e-05/0.01546, allocations: 23.98 kB / 332.3 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/0.01557, allocations: 73.61 kB / 332.4 MB, free: 7.656 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.327e-06/0.01558, allocations: 4 kB / 332.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00164/0.01722, allocations: 2.814 MB / 335.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.01722, allocations: 0 / 335.2 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003521/0.01757, allocations: 392.7 kB / 335.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.82e-05/0.0176, allocations: 31.78 kB / 335.6 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.01761, allocations: 0 / 335.6 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.01774, allocations: 31.97 kB / 335.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.678e-05/0.01778, allocations: 15.97 kB / 335.6 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.0178, allocations: 15.98 kB / 335.7 MB, free: 4.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.01791, allocations: 181.2 kB / 335.8 MB, free: 3.938 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01791, allocations: 8 kB / 335.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002493/0.01816, allocations: 91.84 kB / 335.9 MB, free: 3.84 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 (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.0005136/0.01867, allocations: 0.9129 MB / 336.8 MB, free: 2.895 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.0191, allocations: 440.1 kB / 337.3 MB, free: 2.441 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.0191, allocations: 3.938 kB / 337.3 MB, free: 2.438 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002104/0.01932, allocations: 345.3 kB / 337.6 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002451/0.01956, allocations: 52.34 kB / 337.7 MB, free: 2.023 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002237/0.0218, allocations: 2.697 MB / 340.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.581e-05/0.02189, allocations: 159.7 kB / 340.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 7.253e-05/0.02197, allocations: 26.28 kB / 340.5 MB, free: 15.01 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.311e-05/0.02205, allocations: 96.45 kB / 340.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of SimCode: time 3.91e-07/0.02205, allocations: 0 / 340.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.04468, allocations: 7.478 MB / 348.1 MB, free: 7.629 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.21/7.254, allocations: 3.891 kB / 348.1 MB, free: 7.629 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 8.945657645352185]