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.001146/0.001146, allocations: 88.05 kB / 20.67 MB, free: 3.871 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.001177/0.001177, allocations: 145.1 kB / 23.93 MB, free: 0.6172 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.8661/0.8661, allocations: 173.4 MB / 200.4 MB, free: 9.438 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.633e-06/1.633e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.501e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00314/0.003165, allocations: 2.76 MB / 321.2 MB, free: 3.578 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001101/0.004266, allocations: 0.6738 MB / 321.9 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.004419, allocations: 4 kB / 321.9 MB, free: 2.895 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.004567, allocations: 59.38 kB / 321.9 MB, free: 2.836 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.004726, allocations: 115 kB / 322.1 MB, free: 2.723 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002702/0.004996, allocations: 87.86 kB / 322.1 MB, free: 2.637 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000342/0.005338, allocations: 425.9 kB / 322.6 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.005508, allocations: 72.53 kB / 322.6 MB, free: 2.145 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.005759, allocations: 231.5 kB / 322.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.005877, allocations: 119.7 kB / 323 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.005922, allocations: 36 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.58e-05/0.005957, allocations: 32 kB / 323 MB, free: 1.734 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.54e-05/0.006003, allocations: 79.67 kB / 323.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.447e-05/0.006087, allocations: 119.7 kB / 323.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003013/0.006388, allocations: 402.7 kB / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.006394, allocations: 0 / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.006395, allocations: 0 / 323.6 MB, free: 1.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.006402, allocations: 0 / 323.6 MB, free: 1.145 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.0007132/0.007115, allocations: 0.5591 MB / 324.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.007157, allocations: 11.97 kB / 324.2 MB, free: 0.5469 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.507e-05/0.007212, allocations: 70.72 kB / 324.3 MB, free: 480 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.3e-05/0.007265, allocations: 36.7 kB / 324.3 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.007573, allocations: 229 kB / 324.5 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.00759, allocations: 25.03 kB / 324.5 MB, free: 160 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.007616, allocations: 28.38 kB / 324.6 MB, free: 132 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000413/0.008029, allocations: 404.9 kB / 325 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.008038, allocations: 4.188 kB / 325 MB, free: 15.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.00806, allocations: 16.12 kB / 325 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.008067, allocations: 8 kB / 325 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002916/0.008359, allocations: 214.5 kB / 325.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001054/0.009413, allocations: 0.8603 MB / 326.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.009743, allocations: 202.6 kB / 326.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.009882, allocations: 104 kB / 326.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.009898, allocations: 4 kB / 326.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.009918, allocations: 34.56 kB / 326.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.00992, allocations: 0 / 326.4 MB, free: 14.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007361/0.01066, allocations: 411.2 kB / 326.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.01068, allocations: 55.34 kB / 326.9 MB, free: 13.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.01087, allocations: 261.8 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.906e-05/0.01089, allocations: 33.7 kB / 327.1 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.482e-05/0.01098, allocations: 184.2 kB / 327.3 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.517e-05/0.01101, allocations: 71.38 kB / 327.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.591e-05/0.01107, allocations: 45.94 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.385e-05/0.01115, allocations: 338.8 kB / 327.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.01128, allocations: 80.42 kB / 327.9 MB, free: 12.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.0114, allocations: 103.5 kB / 328 MB, free: 12.56 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.01164, allocations: 195 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01164, allocations: 0 / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003895/0.01203, allocations: 318.9 kB / 328.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.01204, allocations: 7.938 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.01205, allocations: 4 kB / 328.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001881/0.01224, allocations: 69.73 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.01234, allocations: 47.91 kB / 328.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.01386, allocations: 2.825 MB / 331.4 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.01396, allocations: 27.94 kB / 331.4 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.01398, allocations: 15.98 kB / 331.4 MB, free: 8.801 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 0.0001088/0.01409, allocations: 133.8 kB / 331.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.207e-05/0.01412, allocations: 27.8 kB / 331.6 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.524e-05/0.01414, allocations: 34.27 kB / 331.6 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.01415, allocations: 0 / 331.6 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.01415, allocations: 4 kB / 331.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.01415, allocations: 0 / 331.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006134/0.01477, allocations: 0.6241 MB / 332.3 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01477, allocations: 0 / 332.3 MB, free: 7.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.563e-05/0.01484, allocations: 27.97 kB / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001255/0.01496, allocations: 81.61 kB / 332.4 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.01497, allocations: 4 kB / 332.4 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001333/0.0163, allocations: 2.806 MB / 335.2 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.01631, allocations: 4.125 kB / 335.2 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.01665, allocations: 392.4 kB / 335.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.418e-05/0.01668, allocations: 23.8 kB / 335.6 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.0167, allocations: 7.984 kB / 335.6 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.01682, allocations: 31.98 kB / 335.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.01688, allocations: 19.95 kB / 335.7 MB, free: 4.273 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.01689, allocations: 8 kB / 335.7 MB, free: 4.266 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001158/0.01701, allocations: 185.2 kB / 335.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01701, allocations: 0 / 335.8 MB, free: 4.086 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002659/0.01727, allocations: 91.84 kB / 335.9 MB, free: 3.996 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.0005457/0.01782, allocations: 0.9199 MB / 336.9 MB, free: 3.047 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004804/0.0183, allocations: 441.1 kB / 337.3 MB, free: 2.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.0183, allocations: 3.938 kB / 337.3 MB, free: 2.586 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002181/0.01852, allocations: 337.2 kB / 337.6 MB, free: 2.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.0188, allocations: 56.52 kB / 337.7 MB, free: 2.176 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002286/0.02109, allocations: 2.694 MB / 340.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001066/0.02119, allocations: 159.7 kB / 340.5 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.468e-05/0.02128, allocations: 22.3 kB / 340.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.543e-05/0.02137, allocations: 92.47 kB / 340.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.02137, allocations: 0 / 340.6 MB, free: 15.08 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02771/0.04908, allocations: 7.492 MB / 348.1 MB, free: 7.777 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.232/7.281, allocations: 4.406 kB / 348.1 MB, free: 7.777 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 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.csv","/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] "Error: Could not read variable VariableResistor.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable VariableResistor.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! Error: Could not read variable R2.i in file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv. Warning: Get data of variable R2.i from file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.019738834351301]