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.001345/0.001345, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001392/0.001392, allocations: 188.8 kB / 23.72 MB, free: 4.684 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.406/1.406, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.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.001615/0.001615, allocations: 47.92 kB / 370.5 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2566, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004537/0.2612, allocations: 3.033 MB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.2624, allocations: 0.6778 MB / 426.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.2625, allocations: 7.938 kB / 426.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001742/0.2627, allocations: 63.42 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2628, allocations: 107 kB / 426.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002622/0.2631, allocations: 83.88 kB / 426.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000461/0.2636, allocations: 414.2 kB / 427 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001831/0.2638, allocations: 75.58 kB / 427.1 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002281/0.264, allocations: 159.4 kB / 427.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002238/0.2642, allocations: 167.2 kB / 427.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.039e-05/0.2643, allocations: 36 kB / 427.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.573e-05/0.2643, allocations: 32 kB / 427.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.407e-05/0.2644, allocations: 71.75 kB / 427.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.2646, allocations: 171.2 kB / 427.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004986/0.2651, allocations: 394.8 kB / 428.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.2651, allocations: 0 / 428.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2651, allocations: 0 / 428.1 MB, free: 9.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.2651, allocations: 0 / 428.1 MB, free: 9.121 MB / 334.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.00103/0.2661, allocations: 0.5637 MB / 428.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.2662, allocations: 12.03 kB / 428.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.079e-05/0.2662, allocations: 66.66 kB / 428.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.027e-05/0.2663, allocations: 40.7 kB / 428.8 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003863/0.2667, allocations: 221.9 kB / 429 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.432e-05/0.2667, allocations: 21.03 kB / 429 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.538e-05/0.2668, allocations: 24.38 kB / 429 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.2673, allocations: 270.1 kB / 429.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2673, allocations: 0 / 429.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.2673, allocations: 15.94 kB / 429.3 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.2673, allocations: 8 kB / 429.3 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004884/0.2678, allocations: 218.5 kB / 429.5 MB, free: 7.613 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00168/0.2695, allocations: 0.922 MB / 430.4 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/0.27, allocations: 216.9 kB / 430.7 MB, free: 6.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/0.2702, allocations: 92.81 kB / 430.8 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.2703, allocations: 7.938 kB / 430.8 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.2703, allocations: 34.56 kB / 430.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.302e-06/0.2703, allocations: 0 / 430.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001214/0.2715, allocations: 420.8 kB / 431.2 MB, free: 5.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.2716, allocations: 55.41 kB / 431.3 MB, free: 5.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.2718, allocations: 253.9 kB / 431.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.2719, allocations: 29.7 kB / 431.5 MB, free: 5.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.272, allocations: 184.2 kB / 431.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.692e-05/0.272, allocations: 71.39 kB / 431.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.662e-05/0.2721, allocations: 41.94 kB / 431.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.2723, allocations: 342.8 kB / 432.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.2725, allocations: 84.42 kB / 432.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002195/0.2727, allocations: 108.6 kB / 432.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/0.2731, allocations: 186.5 kB / 432.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2731, allocations: 0 / 432.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000651/0.2738, allocations: 322.7 kB / 432.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.2738, allocations: 8.062 kB / 432.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2738, allocations: 4 kB / 432.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002902/0.2741, allocations: 69.67 kB / 432.9 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001992/0.2743, allocations: 39.97 kB / 433 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002615/0.2769, allocations: 2.842 MB / 435.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.2771, allocations: 23.91 kB / 435.8 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.2771, allocations: 4.062 kB / 435.8 MB, free: 0.8984 MB / 334.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.0001638/0.2773, allocations: 157.9 kB / 436 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.525e-05/0.2773, allocations: 27.81 kB / 436 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.822e-05/0.2774, allocations: 22.28 kB / 436 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2774, allocations: 4 kB / 436 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.2774, allocations: 0 / 436 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.2774, allocations: 11.97 kB / 436.1 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/0.2785, allocations: 0.6569 MB / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2785, allocations: 0 / 436.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.2786, allocations: 24.16 kB / 436.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001981/0.2788, allocations: 81.67 kB / 436.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.2788, allocations: 0 / 436.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/0.2816, allocations: 2.841 MB / 439.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2816, allocations: 0 / 439.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006652/0.2823, allocations: 392.6 kB / 440 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.2823, allocations: 19.8 kB / 440.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.266e-05/0.2824, allocations: 11.98 kB / 440.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.2826, allocations: 31.98 kB / 440.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.092e-05/0.2827, allocations: 19.95 kB / 440.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.2827, allocations: 4 kB / 440.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000192/0.2829, allocations: 185.2 kB / 440.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2829, allocations: 0 / 440.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003805/0.2833, allocations: 99.83 kB / 440.4 MB, free: 12 MB / 350.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.0009517/0.2842, allocations: 0.909 MB / 441.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007706/0.285, allocations: 448.9 kB / 441.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.285, allocations: 0 / 441.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.2854, allocations: 341.4 kB / 442.1 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003934/0.2858, allocations: 48.59 kB / 442.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003662/0.2895, allocations: 2.706 MB / 444.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.2899, allocations: 0.7719 MB / 445.6 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.29, allocations: 18.3 kB / 445.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001294/0.2901, allocations: 91.34 kB / 445.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.2901, allocations: 0 / 445.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0538/0.3439, allocations: 6.642 MB / 452.4 MB, free: 0 / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.72, allocations: 6.031 kB / 452.4 MB, free: 16 MB / 366.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/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: 14.237316376998933]