Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008149/0.0008149, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008466/0.0008466, allocations: 160.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8934/0.8934, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2411/0.2411, allocations: 34.24 MB / 294.8 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 442.1 MB, free: 1.617 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/1.989e-05, allocations: 2.281 kB / 442.1 MB, free: 1.613 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001215/0.001235, allocations: 491.7 kB / 442.6 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004371/0.001672, allocations: 263.3 kB / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.962e-05/0.001692, allocations: 0 / 442.9 MB, free: 0.8789 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.543e-05/0.001707, allocations: 4 kB / 442.9 MB, free: 0.875 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.633e-06/0.001714, allocations: 0 / 442.9 MB, free: 0.875 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:409:3-464: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.0003163/0.00203, allocations: 51.75 kB / 442.9 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.15e-05/0.002082, allocations: 3.984 kB / 442.9 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.00212, allocations: 0 / 442.9 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.002147, allocations: 4 kB / 442.9 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.489e-05/0.002172, allocations: 4 kB / 442.9 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.002181, allocations: 3.938 kB / 442.9 MB, free: 0.8086 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000115/0.002296, allocations: 71.81 kB / 443 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.634e-06/0.002304, allocations: 0 / 443 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.031e-05/0.002324, allocations: 0 / 443 MB, free: 0.7383 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001185/0.002443, allocations: 67.84 kB / 443.1 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.002446, allocations: 0 / 443.1 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.002447, allocations: 0 / 443.1 MB, free: 0.6719 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.002452, allocations: 0 / 443.1 MB, free: 0.6719 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.0002547/0.002707, allocations: 280 kB / 443.3 MB, free: 368 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.002746, allocations: 12.03 kB / 443.4 MB, free: 356 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.361e-05/0.002769, allocations: 30.75 kB / 443.4 MB, free: 316 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.481e-05/0.002794, allocations: 4.875 kB / 443.4 MB, free: 312 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.099e-05/0.002845, allocations: 105.8 kB / 443.5 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.002854, allocations: 384 / 443.5 MB, free: 180 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.183e-06/0.002862, allocations: 8.312 kB / 443.5 MB, free: 172 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.884e-05/0.00295, allocations: 55.95 kB / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.002961, allocations: 192 / 443.6 MB, free: 104 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.568e-06/0.00297, allocations: 4.375 kB / 443.6 MB, free: 100 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.002976, allocations: 4.125 kB / 443.6 MB, free: 96 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.219e-05/0.002998, allocations: 29.64 kB / 443.6 MB, free: 60 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1523/0.1553, allocations: 116.7 kB / 443.7 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.509e-05/0.1554, allocations: 41.91 kB / 443.8 MB, free: 44.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.615e-05/0.1554, allocations: 35.22 kB / 443.8 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.075e-06/0.1554, allocations: 3.234 kB / 443.8 MB, free: 44.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1555, allocations: 59.73 kB / 443.8 MB, free: 43.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.865e-06/0.1555, allocations: 0 / 443.8 MB, free: 43.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001648/0.1556, allocations: 123.3 kB / 444 MB, free: 43.87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/0.1557, allocations: 82.11 kB / 444 MB, free: 43.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.257e-05/0.1557, allocations: 93.12 kB / 444.1 MB, free: 43.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.967e-06/0.1557, allocations: 25.7 kB / 444.2 MB, free: 43.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.974e-06/0.1557, allocations: 86.89 kB / 444.2 MB, free: 43.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.1557, allocations: 5.109 kB / 444.3 MB, free: 43.56 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.1557, allocations: 12.66 kB / 444.3 MB, free: 43.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.787e-05/0.1557, allocations: 313 kB / 444.6 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.197e-05/0.1558, allocations: 28.98 kB / 444.6 MB, free: 43.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.608e-06/0.1558, allocations: 28.64 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.674e-05/0.1558, allocations: 63.77 kB / 444.7 MB, free: 43.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1558, allocations: 0 / 444.7 MB, free: 43.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.153e-05/0.1558, allocations: 88.84 kB / 444.8 MB, free: 43.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.1559, allocations: 32.36 kB / 444.8 MB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1559, allocations: 5.75 kB / 444.8 MB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.1559, allocations: 0 / 444.8 MB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.184e-06/0.1559, allocations: 6.469 kB / 444.8 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1559, allocations: 0 / 444.8 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.597e-05/0.1559, allocations: 5.594 kB / 444.8 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.1559, allocations: 0 / 444.8 MB, free: 42.97 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 4.014e-05/0.156, allocations: 138.8 kB / 445 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.937e-06/0.156, allocations: 0 / 445 MB, free: 42.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.043e-05/0.156, allocations: 4.375 kB / 445 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.156, allocations: 3.75 kB / 445 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.156, allocations: 4.594 kB / 445 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.156, allocations: 4.531 kB / 445 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.773e-05/0.156, allocations: 118.8 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.81e-07/0.156, allocations: 0.8438 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-07/0.156, allocations: 2.781 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.51e-07/0.156, allocations: 0 / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.156, allocations: 2.953 kB / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.156, allocations: 0 / 445.1 MB, free: 42.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.156, allocations: 3.938 kB / 445.1 MB, free: 42.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.126e-05/0.1561, allocations: 123.9 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.397e-06/0.1561, allocations: 0 / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.026e-05/0.1561, allocations: 2.625 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.03e-06/0.1561, allocations: 0.9375 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.141e-05/0.1561, allocations: 7.031 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1561, allocations: 2.938 kB / 445.2 MB, free: 42.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.454e-06/0.1561, allocations: 75.28 kB / 445.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1561, allocations: 0 / 445.3 MB, free: 42.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001581/0.1563, allocations: 22.98 kB / 445.3 MB, free: 42.46 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.0004691/0.1567, allocations: 0.8339 MB / 446.2 MB, free: 41.79 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.669e-05/0.1568, allocations: 114.8 kB / 446.3 MB, free: 41.67 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1568, allocations: 0 / 446.3 MB, free: 41.67 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.205e-05/0.1568, allocations: 84.27 kB / 446.4 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.165e-05/0.1569, allocations: 6.812 kB / 446.4 MB, free: 41.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002158/0.1571, allocations: 140.5 kB / 446.5 MB, free: 41.41 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.419e-05/0.1572, allocations: 61.27 kB / 446.6 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.729e-06/0.1572, allocations: 0 / 446.6 MB, free: 41.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.337e-05/0.1572, allocations: 15.44 kB / 446.6 MB, free: 41.33 MB / 410.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1572, allocations: 0 / 446.6 MB, free: 41.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01475/0.1719, allocations: 2.292 MB / 448.9 MB, free: 40.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.674/6.846, allocations: 14.53 kB / 448.9 MB, free: 40.33 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestInternal_res.mat","/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_trunk_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: 8.73775271512568]