Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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.0008374/0.0008374, allocations: 87.69 kB / 20.67 MB, free: 3.883 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.0008424/0.0008424, allocations: 165.3 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.8684/0.8684, allocations: 177.1 MB / 204.3 MB, free: 5.738 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.223/0.223, allocations: 34.25 MB / 294.9 MB, free: 0.7148 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.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 442.1 MB, free: 1.711 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.197e-05/1.343e-05, allocations: 2.281 kB / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.000947/0.0009604, allocations: 0.4958 MB / 442.6 MB, free: 1.215 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1575/0.1584, allocations: 1.349 MB / 444 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.32e-05/0.1585, allocations: 0 / 444 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.525e-05/0.1585, allocations: 0 / 444 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.1587, allocations: 10.44 kB / 444 MB, free: 43.2 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:455:3-487:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008294/0.1595, allocations: 262.2 kB / 444.2 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 4.611e-05/0.1595, allocations: 5.469 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.291e-05/0.1596, allocations: 3.812 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.73e-05/0.1596, allocations: 0.8125 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.175e-05/0.1596, allocations: 7.188 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.013e-06/0.1596, allocations: 1.016 kB / 444.3 MB, free: 43.2 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.1611, allocations: 0.7084 MB / 445 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.203e-06/0.1611, allocations: 2.969 kB / 445 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.52e-05/0.1611, allocations: 2.906 kB / 445 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002012/0.1613, allocations: 224.8 kB / 445.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.1613, allocations: 0 / 445.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1613, allocations: 0 / 445.2 MB, free: 43.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1613, allocations: 3.938 kB / 445.2 MB, free: 43.16 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.0002298/0.1615, allocations: 308.3 kB / 445.5 MB, free: 42.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.1616, allocations: 11.06 kB / 445.5 MB, free: 42.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.589e-05/0.1616, allocations: 30.75 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.081e-05/0.1616, allocations: 4.312 kB / 445.5 MB, free: 42.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.661e-05/0.1616, allocations: 105.1 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.1616, allocations: 384 / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-06/0.1616, allocations: 5.062 kB / 445.7 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.865e-05/0.1617, allocations: 57.16 kB / 445.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.1617, allocations: 384 / 445.7 MB, free: 42.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.1617, allocations: 11.2 kB / 445.7 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.1617, allocations: 4 kB / 445.7 MB, free: 42.62 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.437e-05/0.1617, allocations: 28.39 kB / 445.8 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.158e-05/0.1618, allocations: 119.2 kB / 445.9 MB, free: 42.43 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.967e-05/0.1618, allocations: 44.66 kB / 445.9 MB, free: 42.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.092e-05/0.1618, allocations: 33.8 kB / 445.9 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.011e-06/0.1618, allocations: 2.719 kB / 446 MB, free: 42.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.1619, allocations: 60.2 kB / 446 MB, free: 42.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.02e-07/0.1619, allocations: 0.5625 kB / 446 MB, free: 42.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001196/0.162, allocations: 125.4 kB / 446.1 MB, free: 42.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.779e-05/0.162, allocations: 81.23 kB / 446.2 MB, free: 42.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.889e-05/0.162, allocations: 96.55 kB / 446.3 MB, free: 41.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.436e-06/0.162, allocations: 25.7 kB / 446.3 MB, free: 41.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.534e-06/0.162, allocations: 86.14 kB / 446.4 MB, free: 41.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.128e-05/0.1621, allocations: 5.312 kB / 446.4 MB, free: 41.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/0.1621, allocations: 12.44 kB / 446.4 MB, free: 41.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 1.961e-05/0.1621, allocations: 310.8 kB / 446.7 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-06/0.1621, allocations: 32.42 kB / 446.8 MB, free: 41.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.151e-06/0.1621, allocations: 25.7 kB / 446.8 MB, free: 41.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.994e-05/0.1621, allocations: 69.42 kB / 446.9 MB, free: 41.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1621, allocations: 3.938 kB / 446.9 MB, free: 41.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.09e-05/0.1622, allocations: 89.8 kB / 447 MB, free: 41.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.1622, allocations: 34.08 kB / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.1622, allocations: 0 / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.859e-06/0.1622, allocations: 3.938 kB / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1622, allocations: 0 / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.1622, allocations: 0 / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.179e-05/0.1622, allocations: 2.719 kB / 447 MB, free: 41.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-06/0.1622, allocations: 0 / 447 MB, free: 41.23 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.14e-05/0.1622, allocations: 142.4 kB / 447.1 MB, free: 41.08 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-06/0.1622, allocations: 9.375 kB / 447.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.544e-06/0.1623, allocations: 3.156 kB / 447.1 MB, free: 41.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-07/0.1623, allocations: 7.875 kB / 447.2 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1623, allocations: 0 / 447.2 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.1623, allocations: 0 / 447.2 MB, free: 41.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.32e-05/0.1623, allocations: 122.5 kB / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.1623, allocations: 3.938 kB / 447.3 MB, free: 40.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-07/0.1623, allocations: 6.656 kB / 447.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-07/0.1623, allocations: 0 / 447.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-06/0.1623, allocations: 0 / 447.3 MB, free: 40.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.1623, allocations: 7.938 kB / 447.3 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1623, allocations: 3.938 kB / 447.3 MB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.07e-05/0.1623, allocations: 117 kB / 447.4 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-06/0.1623, allocations: 2.281 kB / 447.4 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-06/0.1624, allocations: 3.094 kB / 447.4 MB, free: 40.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.592e-06/0.1624, allocations: 6.875 kB / 447.4 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.398e-06/0.1624, allocations: 0 / 447.4 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-06/0.1624, allocations: 0 / 447.4 MB, free: 40.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.917e-06/0.1624, allocations: 78.03 kB / 447.5 MB, free: 40.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1624, allocations: 128 / 447.5 MB, free: 40.69 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002221/0.1626, allocations: 68.2 kB / 447.6 MB, free: 40.68 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.000457/0.1631, allocations: 0.9035 MB / 448.5 MB, free: 39.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 5.986e-05/0.1631, allocations: 108.5 kB / 448.6 MB, free: 39.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-06/0.1631, allocations: 0 / 448.6 MB, free: 39.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.187e-05/0.1631, allocations: 93.66 kB / 448.7 MB, free: 39.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.47e-05/0.1632, allocations: 6.469 kB / 448.7 MB, free: 39.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002146/0.1634, allocations: 163 kB / 448.8 MB, free: 39.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.85e-05/0.1635, allocations: 61.86 kB / 448.9 MB, free: 39.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.231e-06/0.1635, allocations: 4 kB / 448.9 MB, free: 39.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.1635, allocations: 16.2 kB / 448.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1635, allocations: 0 / 448.9 MB, free: 39.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.1831, allocations: 3.232 MB / 452.1 MB, free: 38.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.018/7.201, allocations: 18.33 kB / 452.2 MB, free: 38.4 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestFiles.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestFiles.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: 9.004293939098716]