Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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.001172/0.001172, allocations: 79.69 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.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.001221/0.001221, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9016/0.9016, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2599/0.2599, allocations: 34.25 MB / 294.9 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) 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(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 442.1 MB, free: 1.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.209e-05/2.362e-05, allocations: 5.094 kB / 442.1 MB, free: 1.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001306/0.00133, allocations: 477 kB / 442.6 MB, free: 1.219 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005222/0.001852, allocations: 271.3 kB / 442.9 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.369e-05/0.001876, allocations: 0 / 442.9 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.966e-05/0.001896, allocations: 0 / 442.9 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 9.268e-06/0.001905, allocations: 7.938 kB / 442.9 MB, free: 0.9453 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:398:3-453:15:writable] Warning: Pure function 'ModelicaTest.Utilities.Internal' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.002298, allocations: 47.77 kB / 442.9 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 7.502e-05/0.002373, allocations: 0 / 442.9 MB, free: 0.8984 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.426e-05/0.002428, allocations: 3.984 kB / 442.9 MB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.116e-05/0.002479, allocations: 7.984 kB / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.816e-05/0.002517, allocations: 0 / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.354e-05/0.00253, allocations: 0 / 442.9 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001607/0.002691, allocations: 63.89 kB / 443 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.117e-05/0.002702, allocations: 4 kB / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.784e-05/0.00273, allocations: 0 / 443 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.002899, allocations: 71.78 kB / 443.1 MB, free: 0.75 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.002902, allocations: 0 / 443.1 MB, free: 0.75 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.002904, allocations: 0 / 443.1 MB, free: 0.75 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.00291, allocations: 0 / 443.1 MB, free: 0.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003564/0.003266, allocations: 276 kB / 443.3 MB, free: 452 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.003323, allocations: 12.03 kB / 443.4 MB, free: 440 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.822e-05/0.003351, allocations: 30.75 kB / 443.4 MB, free: 400 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.599e-05/0.003377, allocations: 4.938 kB / 443.4 MB, free: 396 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.418e-05/0.003431, allocations: 105.8 kB / 443.5 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.003442, allocations: 384 / 443.5 MB, free: 264 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.135e-06/0.00345, allocations: 8.359 kB / 443.5 MB, free: 256 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.645e-05/0.003536, allocations: 51.97 kB / 443.6 MB, free: 192 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.003543, allocations: 4.125 kB / 443.6 MB, free: 188 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.736e-06/0.003552, allocations: 8.359 kB / 443.6 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.003557, allocations: 4.125 kB / 443.6 MB, free: 176 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.376e-05/0.003581, allocations: 29.64 kB / 443.6 MB, free: 140 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1692/0.1728, allocations: 116.8 kB / 443.7 MB, free: 44.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.687e-05/0.1728, allocations: 42.89 kB / 443.8 MB, free: 44.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.473e-05/0.1728, allocations: 35.88 kB / 443.8 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.1729, allocations: 0.625 kB / 443.8 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.1729, allocations: 63.88 kB / 443.9 MB, free: 44.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.1729, allocations: 0 / 443.9 MB, free: 44.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.173, allocations: 124.4 kB / 444 MB, free: 44.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.173, allocations: 83.8 kB / 444.1 MB, free: 43.91 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.427e-05/0.1731, allocations: 95.47 kB / 444.2 MB, free: 43.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-06/0.1731, allocations: 25.7 kB / 444.2 MB, free: 43.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.403e-06/0.1731, allocations: 83.09 kB / 444.3 MB, free: 43.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.292e-05/0.1731, allocations: 3.797 kB / 444.3 MB, free: 43.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.342e-05/0.1731, allocations: 12.66 kB / 444.3 MB, free: 43.69 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.825e-05/0.1731, allocations: 312.9 kB / 444.6 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.317e-06/0.1731, allocations: 29.3 kB / 444.6 MB, free: 43.34 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-06/0.1731, allocations: 28.98 kB / 444.6 MB, free: 43.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.352e-05/0.1732, allocations: 66.02 kB / 444.7 MB, free: 43.24 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1732, allocations: 0 / 444.7 MB, free: 43.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.782e-05/0.1732, allocations: 89.06 kB / 444.8 MB, free: 43.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1732, allocations: 32.42 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.778e-06/0.1732, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1733, allocations: 0.5625 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.813e-06/0.1733, allocations: 4.031 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1733, allocations: 3.5 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.709e-06/0.1733, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-06/0.1733, allocations: 3.5 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 3.309e-05/0.1733, allocations: 144.4 kB / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.727e-06/0.1733, allocations: 0 / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.263e-06/0.1733, allocations: 5.656 kB / 445 MB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1733, allocations: 0 / 445 MB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1733, allocations: 0 / 445 MB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.1733, allocations: 0 / 445 MB, free: 42.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.303e-05/0.1734, allocations: 124.9 kB / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.1734, allocations: 0 / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-07/0.1734, allocations: 0 / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.1734, allocations: 0 / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.1734, allocations: 3.062 kB / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.1734, allocations: 0.6562 kB / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-07/0.1734, allocations: 3.875 kB / 445.1 MB, free: 42.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.906e-05/0.1734, allocations: 121.8 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.226e-06/0.1734, allocations: 1 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.726e-06/0.1734, allocations: 5.562 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.188e-06/0.1734, allocations: 0 / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-06/0.1734, allocations: 6.516 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.1734, allocations: 2.906 kB / 445.2 MB, free: 42.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.324e-06/0.1734, allocations: 75.28 kB / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1734, allocations: 0 / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001474/0.1736, allocations: 26.45 kB / 445.3 MB, free: 42.61 MB / 410.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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004116/0.174, allocations: 0.8526 MB / 446.2 MB, free: 41.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.432e-05/0.1741, allocations: 113.9 kB / 446.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.1741, allocations: 0 / 446.3 MB, free: 41.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.848e-05/0.1741, allocations: 82.98 kB / 446.4 MB, free: 41.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.635e-05/0.1742, allocations: 2.688 kB / 446.4 MB, free: 41.72 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001657/0.1743, allocations: 150.2 kB / 446.5 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.222e-05/0.1743, allocations: 61.55 kB / 446.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.817e-06/0.1743, allocations: 0 / 446.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.177e-06/0.1744, allocations: 8.5 kB / 446.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1744, allocations: 0 / 446.6 MB, free: 41.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01364/0.188, allocations: 2.297 MB / 448.9 MB, free: 40.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.839/7.027, allocations: 6.969 kB / 448.9 MB, free: 40.5 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Failed to open simulation result ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv: Error: Error opening file: ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.csv " [Timeout remaining time 660] "" Variables in the reference:time,result Variables in the result: [Calling sys.exit(0), Time elapsed: 9.074180917814374]