Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 83.69 kB / 20.67 MB, free: 3.879 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009126/0.0009126, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9178/0.9178, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.223e-05/1.402e-05, allocations: 10.22 kB / 324.6 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.002191/0.002205, allocations: 2.096 MB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007997/0.003005, allocations: 0.5804 MB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.003093, allocations: 3.938 kB / 327.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.003198, allocations: 27.78 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.537e-05/0.003264, allocations: 43.58 kB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.003489, allocations: 55.86 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001499/0.003639, allocations: 171.1 kB / 327.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.003764, allocations: 40.75 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.003909, allocations: 91.73 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.342e-05/0.003982, allocations: 55.8 kB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.004003, allocations: 12 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.509e-05/0.004058, allocations: 24 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.204e-05/0.00408, allocations: 31.84 kB / 327.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.761e-05/0.004118, allocations: 39.92 kB / 327.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001938/0.004311, allocations: 187.4 kB / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.004313, allocations: 0 / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.004314, allocations: 0 / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004319, allocations: 0 / 328 MB, free: 12.45 MB / 298.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.0004697/0.004788, allocations: 365.9 kB / 328.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.004834, allocations: 12.03 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.229e-05/0.004877, allocations: 46.73 kB / 328.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.004996, allocations: 20.84 kB / 328.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002049/0.005201, allocations: 165.5 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.005215, allocations: 8.609 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.00523, allocations: 12.38 kB / 328.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.005429, allocations: 141.7 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.005437, allocations: 4.188 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.00545, allocations: 8.125 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.005458, allocations: 7.984 kB / 328.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.005573, allocations: 76.66 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005498/0.006123, allocations: 470.9 kB / 329.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002135/0.006337, allocations: 82.56 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.667e-05/0.006383, allocations: 32.91 kB / 329.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.006396, allocations: 4 kB / 329.4 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.853e-05/0.006414, allocations: 30.56 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.61e-07/0.006415, allocations: 0 / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003943/0.00681, allocations: 178.3 kB / 329.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.006836, allocations: 51.41 kB / 329.7 MB, free: 10.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.277e-05/0.006929, allocations: 164.6 kB / 329.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.00694, allocations: 25.7 kB / 329.9 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/0.007001, allocations: 132.1 kB / 330 MB, free: 10.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.466e-05/0.007016, allocations: 23.84 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-05/0.007045, allocations: 17.72 kB / 330.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.449e-05/0.00712, allocations: 322.8 kB / 330.4 MB, free: 9.895 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.703e-05/0.007157, allocations: 19.98 kB / 330.4 MB, free: 9.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.93e-05/0.007216, allocations: 50.5 kB / 330.4 MB, free: 9.816 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.019e-05/0.007296, allocations: 66.55 kB / 330.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.007298, allocations: 0 / 330.5 MB, free: 9.742 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001671/0.007465, allocations: 142.2 kB / 330.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.007478, allocations: 4 kB / 330.7 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.007483, allocations: 4 kB / 330.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001311/0.007614, allocations: 36.83 kB / 330.7 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.335e-05/0.007647, allocations: 11.98 kB / 330.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001036/0.008684, allocations: 1.582 MB / 332.3 MB, free: 7.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.126e-05/0.008725, allocations: 11.95 kB / 332.3 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.578e-06/0.008734, allocations: 8 kB / 332.3 MB, free: 7.824 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 7.505e-05/0.00881, allocations: 117.8 kB / 332.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.008828, allocations: 11.89 kB / 332.4 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.447e-05/0.008843, allocations: 20.84 kB / 332.5 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.008844, allocations: 0 / 332.5 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.008845, allocations: 0 / 332.5 MB, free: 7.668 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.008849, allocations: 3.984 kB / 332.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.008989, allocations: 172.7 kB / 332.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.00899, allocations: 0 / 332.6 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.452e-05/0.009005, allocations: 4 kB / 332.6 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.947e-05/0.009084, allocations: 40.77 kB / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.009092, allocations: 0 / 332.7 MB, free: 7.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009164/0.01001, allocations: 1.578 MB / 334.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.01001, allocations: 192 / 334.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.01022, allocations: 212.2 kB / 334.5 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.248e-06/0.01023, allocations: 11.89 kB / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.972e-06/0.01023, allocations: 0 / 334.5 MB, free: 5.473 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.12e-05/0.01029, allocations: 12.05 kB / 334.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.116e-05/0.01032, allocations: 11.98 kB / 334.5 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.01032, allocations: 0 / 334.5 MB, free: 5.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.296e-05/0.01037, allocations: 107.3 kB / 334.6 MB, free: 5.344 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01037, allocations: 0 / 334.6 MB, free: 5.344 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.01061, allocations: 39.95 kB / 334.6 MB, free: 5.305 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.0004215/0.01103, allocations: 0.7443 MB / 335.4 MB, free: 4.531 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002911/0.01132, allocations: 206.4 kB / 335.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01132, allocations: 0 / 335.6 MB, free: 4.316 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.01142, allocations: 150.7 kB / 335.7 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.01161, allocations: 15.11 kB / 335.7 MB, free: 4.145 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001371/0.01298, allocations: 1.706 MB / 337.4 MB, free: 2.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.912e-05/0.01307, allocations: 102.2 kB / 337.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.543e-05/0.01311, allocations: 4.5 kB / 337.5 MB, free: 2.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.872e-05/0.01316, allocations: 36.48 kB / 337.6 MB, free: 2.176 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01316, allocations: 0 / 337.6 MB, free: 2.176 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.02948, allocations: 3.63 MB / 341.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/7.778, allocations: 240 / 341.2 MB, free: 14.68 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable resistor.i in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.i from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! Error: Could not read variable resistor.LossPower in file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv. Warning: Get data of variable resistor.LossPower from file Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.622347568161786]