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.001842/0.001842, allocations: 120.1 kB / 18.49 MB, free: 4.586 MB / 14.72 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.002369/0.002369, allocations: 215 kB / 21.45 MB, free: 1.641 MB / 14.72 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 1.487/1.487, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] 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.2289/0.2289, allocations: 46.93 MB / 357.8 MB, free: 10.3 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 67.89 kB / 0.4916 GB, free: 7.973 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1439, allocations: 65.99 MB / 0.556 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001804/0.1457, allocations: 493 kB / 0.5565 GB, free: 5.375 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007203/0.1465, allocations: 255.8 kB / 0.5568 GB, free: 5.125 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.935e-05/0.1465, allocations: 4 kB / 0.5568 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.776e-05/0.1465, allocations: 0 / 0.5568 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.283e-06/0.1465, allocations: 0 / 0.5568 GB, free: 5.121 MB / 414.1 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.0003967/0.1469, allocations: 47.83 kB / 0.5568 GB, free: 5.074 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.009e-05/0.147, allocations: 8 kB / 0.5568 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.085e-05/0.147, allocations: 0 / 0.5568 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.136e-05/0.147, allocations: 7.984 kB / 0.5568 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.299e-05/0.1471, allocations: 0 / 0.5568 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.796e-06/0.1471, allocations: 0 / 0.5568 GB, free: 5.059 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.1473, allocations: 63.94 kB / 0.5569 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-06/0.1473, allocations: 0 / 0.5569 GB, free: 4.996 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.509e-05/0.1473, allocations: 4 kB / 0.5569 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001734/0.1475, allocations: 55.81 kB / 0.5569 GB, free: 4.938 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1475, allocations: 0 / 0.5569 GB, free: 4.938 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1475, allocations: 3.938 kB / 0.5569 GB, free: 4.934 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1475, allocations: 7.984 kB / 0.5569 GB, free: 4.926 MB / 414.1 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.0004777/0.148, allocations: 357.1 kB / 0.5573 GB, free: 4.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.148, allocations: 12.03 kB / 0.5573 GB, free: 4.508 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.508e-05/0.148, allocations: 192 / 0.5573 GB, free: 4.508 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.1481, allocations: 30.75 kB / 0.5573 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.522e-05/0.1481, allocations: 0.9375 kB / 0.5573 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.1483, allocations: 164.3 kB / 0.5575 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.1483, allocations: 384 / 0.5575 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.345e-06/0.1483, allocations: 384 / 0.5575 GB, free: 4.27 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001057/0.1484, allocations: 38.02 kB / 0.5575 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1484, allocations: 0 / 0.5575 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.1484, allocations: 0 / 0.5575 GB, free: 4.227 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.1484, allocations: 3.984 kB / 0.5575 GB, free: 4.223 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.274e-05/0.1484, allocations: 4 kB / 0.5575 GB, free: 4.219 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.1486, allocations: 145.7 kB / 0.5577 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.623e-05/0.1487, allocations: 18.52 kB / 0.5577 GB, free: 4 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.933e-05/0.1487, allocations: 12.95 kB / 0.5577 GB, free: 3.984 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.177e-06/0.1487, allocations: 0 / 0.5577 GB, free: 3.984 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.724e-05/0.1488, allocations: 64.14 kB / 0.5578 GB, free: 3.906 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1488, allocations: 0 / 0.5578 GB, free: 3.906 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002037/0.149, allocations: 67.39 kB / 0.5578 GB, free: 3.828 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.901e-05/0.1491, allocations: 77.11 kB / 0.5579 GB, free: 3.734 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.075e-05/0.1491, allocations: 97.75 kB / 0.558 GB, free: 3.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1491, allocations: 29.7 kB / 0.558 GB, free: 3.594 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.667e-05/0.1492, allocations: 85.92 kB / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.725e-05/0.1492, allocations: 0 / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.1492, allocations: 13.7 kB / 0.5581 GB, free: 3.488 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1494, allocations: 318.8 kB / 0.5584 GB, free: 3.168 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.1494, allocations: 0 / 0.5584 GB, free: 3.168 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-06/0.1494, allocations: 0 / 0.5584 GB, free: 3.168 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.776e-05/0.1495, allocations: 60.27 kB / 0.5585 GB, free: 3.094 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1495, allocations: 4.062 kB / 0.5585 GB, free: 3.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.285e-05/0.1496, allocations: 63.39 kB / 0.5585 GB, free: 3.016 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.322e-05/0.1496, allocations: 37.64 kB / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.1496, allocations: 0 / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1496, allocations: 0 / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.866e-06/0.1496, allocations: 7.938 kB / 0.5586 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.1496, allocations: 0 / 0.5586 GB, free: 2.965 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.606e-05/0.1496, allocations: 4 kB / 0.5586 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1496, allocations: 0 / 0.5586 GB, free: 2.961 MB / 414.1 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 0.0001135/0.1498, allocations: 137.8 kB / 0.5587 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.1498, allocations: 11.88 kB / 0.5587 GB, free: 2.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.1498, allocations: 7.109 kB / 0.5587 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1498, allocations: 0 / 0.5587 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1498, allocations: 0 / 0.5587 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1498, allocations: 0 / 0.5587 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.1499, allocations: 141.7 kB / 0.5589 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1499, allocations: 4 kB / 0.5589 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.22e-07/0.1499, allocations: 0 / 0.5589 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1499, allocations: 3.938 kB / 0.5589 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.1499, allocations: 0 / 0.5589 GB, free: 2.602 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1499, allocations: 4 kB / 0.5589 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/0.1499, allocations: 3.984 kB / 0.5589 GB, free: 2.594 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.15, allocations: 86.84 kB / 0.559 GB, free: 2.484 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.324e-05/0.1501, allocations: 88.97 kB / 0.5591 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.1501, allocations: 7.922 kB / 0.5591 GB, free: 2.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.189e-05/0.1501, allocations: 4 kB / 0.5591 GB, free: 2.367 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.1501, allocations: 4 kB / 0.5591 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-06/0.1501, allocations: 4.031 kB / 0.5591 GB, free: 2.359 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.1502, allocations: 75.28 kB / 0.5591 GB, free: 2.285 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1502, allocations: 0 / 0.5591 GB, free: 2.285 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002479/0.1504, allocations: 19.94 kB / 0.5592 GB, free: 2.266 MB / 414.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: 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.001098/0.1515, allocations: 0.8039 MB / 0.5599 GB, free: 1.496 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.1516, allocations: 67.33 kB / 0.56 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1516, allocations: 0 / 0.56 GB, free: 1.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.755e-05/0.1517, allocations: 55.41 kB / 0.5601 GB, free: 1.352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.1518, allocations: 3.938 kB / 0.5601 GB, free: 1.348 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000323/0.1521, allocations: 126.6 kB / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.1525, allocations: 0.6729 MB / 0.5608 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.36e-06/0.1525, allocations: 0 / 0.5608 GB, free: 496 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.399e-05/0.1525, allocations: 11.38 kB / 0.5609 GB, free: 484 kB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1525, allocations: 4.125 kB / 0.5609 GB, free: 480 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.1699, allocations: 1.656 MB / 0.5625 GB, free: 14.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.481/8.651, allocations: 8.188 kB / 0.5625 GB, free: 14.89 MB / 430.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestInternal.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: 11.583564820990432]