Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0008167/0.0008167, allocations: 79.7 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.0007731/0.0007731, allocations: 174.3 kB / 23.95 MB, free: 0.6094 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.8885/0.8885, allocations: 177.1 MB / 204.2 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.252/0.252, allocations: 32.8 MB / 293.5 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestInternal,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 439.5 MB, free: 4.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.533e-05/1.673e-05, allocations: 2.844 kB / 439.6 MB, free: 4.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0009817/0.0009984, allocations: 490.7 kB / 440 MB, free: 3.805 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004944/0.001493, allocations: 259.3 kB / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.258e-05/0.001515, allocations: 0 / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.662e-05/0.001532, allocations: 0 / 440.3 MB, free: 3.551 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.001539, allocations: 0 / 440.3 MB, free: 3.551 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:399:3-454: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.0003144/0.001853, allocations: 63.69 kB / 440.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.098e-05/0.001904, allocations: 0 / 440.3 MB, free: 3.488 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.956e-05/0.001944, allocations: 3.984 kB / 440.4 MB, free: 3.484 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.664e-05/0.00197, allocations: 0 / 440.4 MB, free: 3.484 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.359e-05/0.001994, allocations: 7.938 kB / 440.4 MB, free: 3.477 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.024e-05/0.002004, allocations: 4 kB / 440.4 MB, free: 3.473 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.00213, allocations: 59.89 kB / 440.4 MB, free: 3.414 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.514e-06/0.002137, allocations: 0 / 440.4 MB, free: 3.414 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.096e-05/0.002158, allocations: 0 / 440.4 MB, free: 3.414 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001177/0.002276, allocations: 67.84 kB / 440.5 MB, free: 3.348 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.002278, allocations: 0 / 440.5 MB, free: 3.348 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.002279, allocations: 0 / 440.5 MB, free: 3.348 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.002283, allocations: 0 / 440.5 MB, free: 3.348 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.0002306/0.002513, allocations: 280 kB / 440.8 MB, free: 3.035 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.00255, allocations: 12.03 kB / 440.8 MB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.056e-05/0.00257, allocations: 30.75 kB / 440.8 MB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.067e-05/0.002591, allocations: 8.875 kB / 440.8 MB, free: 2.977 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.27e-05/0.002644, allocations: 101.8 kB / 440.9 MB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.097e-06/0.002653, allocations: 384 / 440.9 MB, free: 2.852 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.00266, allocations: 4.375 kB / 440.9 MB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.396e-05/0.002734, allocations: 59.95 kB / 441 MB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.00274, allocations: 192 / 441 MB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-06/0.002746, allocations: 4.312 kB / 441 MB, free: 2.773 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.002751, allocations: 8.125 kB / 441 MB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.002772, allocations: 25.7 kB / 441 MB, free: 2.734 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.465e-05/0.002856, allocations: 116.8 kB / 441.1 MB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.919e-05/0.002896, allocations: 52.2 kB / 441.2 MB, free: 2.512 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.002912, allocations: 34.56 kB / 441.2 MB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.019e-06/0.002917, allocations: 4.062 kB / 441.2 MB, free: 2.465 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.901e-05/0.002946, allocations: 56.27 kB / 441.3 MB, free: 2.395 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.21e-07/0.002947, allocations: 0 / 441.3 MB, free: 2.395 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001424/0.003089, allocations: 118.7 kB / 441.4 MB, free: 2.254 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.003122, allocations: 81.05 kB / 441.5 MB, free: 2.156 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.853e-05/0.003151, allocations: 101.8 kB / 441.6 MB, free: 2.047 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.003158, allocations: 25.7 kB / 441.6 MB, free: 2.016 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.871e-05/0.003177, allocations: 84.25 kB / 441.7 MB, free: 1.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.36e-05/0.00319, allocations: 7.938 kB / 441.7 MB, free: 1.922 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.021e-05/0.00321, allocations: 13.72 kB / 441.7 MB, free: 1.902 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.981e-05/0.00328, allocations: 310.8 kB / 442 MB, free: 1.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.354e-05/0.003294, allocations: 25.7 kB / 442 MB, free: 1.559 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.244e-05/0.003306, allocations: 29.69 kB / 442 MB, free: 1.523 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.475e-05/0.003341, allocations: 68.2 kB / 442.1 MB, free: 1.441 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.003343, allocations: 0 / 442.1 MB, free: 1.441 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.844e-05/0.003391, allocations: 85.11 kB / 442.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.003418, allocations: 38.31 kB / 442.2 MB, free: 1.297 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.003422, allocations: 4.094 kB / 442.2 MB, free: 1.293 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.003433, allocations: 0 / 442.2 MB, free: 1.293 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.003434, allocations: 0 / 442.2 MB, free: 1.293 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.00344, allocations: 3.938 kB / 442.2 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.177e-06/0.003449, allocations: 0 / 442.2 MB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.843e-06/0.003456, allocations: 8 kB / 442.3 MB, free: 1.281 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 5.616e-05/0.003512, allocations: 136.2 kB / 442.4 MB, free: 1.133 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-06/0.003515, allocations: 3.938 kB / 442.4 MB, free: 1.129 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.487e-06/0.003525, allocations: 7 kB / 442.4 MB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.003526, allocations: 0 / 442.4 MB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.003531, allocations: 7.938 kB / 442.4 MB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.483e-06/0.003537, allocations: 3.984 kB / 442.4 MB, free: 1.105 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.577e-05/0.003593, allocations: 112.8 kB / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.31e-07/0.003594, allocations: 0 / 442.5 MB, free: 0.9531 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.003595, allocations: 4 kB / 442.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.003596, allocations: 0 / 442.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-06/0.003602, allocations: 0 / 442.5 MB, free: 0.9492 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.003603, allocations: 3.938 kB / 442.5 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.003605, allocations: 3.938 kB / 442.5 MB, free: 0.9414 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.938e-05/0.003675, allocations: 116.5 kB / 442.6 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-06/0.003679, allocations: 4.031 kB / 442.6 MB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.929e-06/0.003689, allocations: 4 kB / 442.7 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.929e-06/0.003694, allocations: 0 / 442.7 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.34e-05/0.003707, allocations: 11.86 kB / 442.7 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.003709, allocations: 0 / 442.7 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.056e-05/0.00373, allocations: 75.28 kB / 442.7 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00373, allocations: 0 / 442.7 MB, free: 0.7031 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000158/0.003888, allocations: 23.94 kB / 442.8 MB, free: 0.6797 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.1348/0.1387, allocations: 0.8379 MB / 443.6 MB, free: 46.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001036/0.1388, allocations: 119.6 kB / 443.7 MB, free: 45.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1388, allocations: 0 / 443.7 MB, free: 45.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.462e-05/0.1388, allocations: 83.39 kB / 443.8 MB, free: 45.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.219e-05/0.1389, allocations: 2.812 kB / 443.8 MB, free: 45.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002047/0.1391, allocations: 148.2 kB / 443.9 MB, free: 45.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.899e-05/0.1391, allocations: 54.11 kB / 444 MB, free: 45.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.528e-06/0.1392, allocations: 5.344 kB / 444 MB, free: 45.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.079e-05/0.1392, allocations: 8.5 kB / 444 MB, free: 45.58 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1392, allocations: 2.734 kB / 444 MB, free: 45.58 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01189/0.1511, allocations: 2.304 MB / 446.3 MB, free: 44.63 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.738/6.889, allocations: 11.16 kB / 446.3 MB, free: 44.62 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestInternal.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.783555331639946]