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.0008165/0.0008165, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008547/0.0008547, allocations: 170.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.9228/0.9228, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.2433/0.2433, 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.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.683e-06/1.683e-06, allocations: 0 / 442.1 MB, free: 1.711 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.094e-05, allocations: 4.391 kB / 442.1 MB, free: 1.707 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.001202/0.001223, allocations: 497 kB / 442.6 MB, free: 1.223 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004465/0.001669, allocations: 259.3 kB / 442.9 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.867e-05/0.001688, allocations: 0 / 442.9 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.001702, allocations: 0 / 442.9 MB, free: 0.9688 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.021e-06/0.001708, allocations: 3.938 kB / 442.9 MB, free: 0.9648 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.0003177/0.002026, allocations: 51.77 kB / 442.9 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.513e-05/0.002081, allocations: 0 / 442.9 MB, free: 0.9141 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.002122, allocations: 3.984 kB / 442.9 MB, free: 0.9102 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.683e-05/0.002149, allocations: 4 kB / 442.9 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.497e-05/0.002174, allocations: 0 / 442.9 MB, free: 0.9062 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.808e-06/0.002184, allocations: 4 kB / 442.9 MB, free: 0.9023 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.002321, allocations: 59.89 kB / 443 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 7.334e-06/0.002328, allocations: 0 / 443 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.238e-05/0.00235, allocations: 4 kB / 443 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.002484, allocations: 71.78 kB / 443.1 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.002487, allocations: 0 / 443.1 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.002488, allocations: 0 / 443.1 MB, free: 0.7695 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.002493, allocations: 0 / 443.1 MB, free: 0.7695 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.0002797/0.002772, allocations: 276 kB / 443.3 MB, free: 472 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.002813, allocations: 12.03 kB / 443.4 MB, free: 460 kB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.428e-05/0.002837, allocations: 30.75 kB / 443.4 MB, free: 420 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.66e-05/0.002864, allocations: 4.938 kB / 443.4 MB, free: 416 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.684e-05/0.002921, allocations: 105.8 kB / 443.5 MB, free: 284 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.002932, allocations: 4.375 kB / 443.5 MB, free: 280 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-06/0.002939, allocations: 384 / 443.5 MB, free: 280 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.729e-05/0.003026, allocations: 59.95 kB / 443.6 MB, free: 208 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.842e-06/0.003033, allocations: 4.125 kB / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.304e-06/0.00304, allocations: 384 / 443.6 MB, free: 204 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.003047, allocations: 4.125 kB / 443.6 MB, free: 200 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.23e-05/0.003069, allocations: 29.64 kB / 443.6 MB, free: 164 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001119/0.003181, allocations: 116.8 kB / 443.7 MB, free: 4 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.003291, allocations: 51.89 kB / 443.8 MB, free: 44.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.74e-05/0.003308, allocations: 33.69 kB / 443.8 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.003317, allocations: 0 / 443.8 MB, free: 44.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.003341, allocations: 59.55 kB / 443.9 MB, free: 44.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.003343, allocations: 1.156 kB / 443.9 MB, free: 44.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.00351, allocations: 119.7 kB / 444 MB, free: 44.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.003535, allocations: 84.45 kB / 444.1 MB, free: 43.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.676e-05/0.003552, allocations: 94.56 kB / 444.1 MB, free: 43.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-06/0.003558, allocations: 26.42 kB / 444.2 MB, free: 43.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.103e-06/0.003565, allocations: 80.14 kB / 444.3 MB, free: 43.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.633e-05/0.003581, allocations: 6.734 kB / 444.3 MB, free: 43.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/0.003605, allocations: 19.36 kB / 444.3 MB, free: 43.7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.706e-05/0.003632, allocations: 310.8 kB / 444.6 MB, free: 43.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.143e-05/0.003643, allocations: 32.23 kB / 444.6 MB, free: 43.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.819e-06/0.003653, allocations: 25.7 kB / 444.6 MB, free: 43.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.651e-05/0.00368, allocations: 60.2 kB / 444.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.003681, allocations: 5.594 kB / 444.7 MB, free: 43.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.04e-05/0.003722, allocations: 90.53 kB / 444.8 MB, free: 43.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.003747, allocations: 31.73 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.003752, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.003765, allocations: 0 / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.003766, allocations: 1.688 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.003771, allocations: 3.141 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.504e-05/0.003786, allocations: 6.594 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.191e-06/0.003792, allocations: 0 / 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.77e-05/0.00383, allocations: 143.6 kB / 445 MB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.606e-06/0.003834, allocations: 0 / 445 MB, free: 42.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.044e-05/0.003844, allocations: 5.906 kB / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.003847, allocations: 2.906 kB / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.003851, allocations: 0 / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.003853, allocations: 3.281 kB / 445 MB, free: 42.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.984e-05/0.003893, allocations: 119.6 kB / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.003894, allocations: 6.906 kB / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.003894, allocations: 0 / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.92e-07/0.003895, allocations: 0 / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.18e-06/0.0039, allocations: 0 / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.003901, allocations: 0.9844 kB / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.003902, allocations: 0 / 445.1 MB, free: 42.82 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.226e-05/0.003954, allocations: 124 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-06/0.003958, allocations: 6.016 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.015e-05/0.003968, allocations: 1.5 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.372e-06/0.003975, allocations: 2.719 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.598e-06/0.003984, allocations: 3.375 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.003987, allocations: 2.188 kB / 445.2 MB, free: 42.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.145e-06/0.003995, 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.003995, allocations: 3.062 kB / 445.3 MB, free: 42.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001589/0.004154, allocations: 25.14 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.0004974/0.004652, allocations: 0.8431 MB / 446.2 MB, free: 41.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.559e-05/0.004747, allocations: 113.2 kB / 446.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.00475, allocations: 352 / 446.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.846e-05/0.004768, allocations: 86.83 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 0.0001062/0.004874, allocations: 3.406 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.0002536/0.005128, allocations: 151.6 kB / 446.5 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.772e-05/0.005156, allocations: 57.38 kB / 446.6 MB, free: 41.49 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 6.342e-06/0.005162, allocations: 0 / 446.6 MB, free: 41.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.507e-05/0.005177, allocations: 8.5 kB / 446.6 MB, free: 41.49 MB / 410.7 MB Notification: Performance of SimCode: time 1.182e-06/0.005178, allocations: 0 / 446.6 MB, free: 41.49 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01484/0.02001, allocations: 2.302 MB / 448.9 MB, free: 40.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.545/6.565, allocations: 7.031 kB / 448.9 MB, free: 40.49 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 & /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/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.662019928917289]