Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.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.002366/0.002366, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002736/0.002736, allocations: 165.3 kB / 24.28 MB, free: 152 kB / 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 1.577/1.577, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 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.3478/0.3478, allocations: 34.26 MB / 295.3 MB, free: 0.6719 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: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 377.2 MB, free: 3.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.461e-05/3.66e-05, allocations: 10.31 kB / 377.3 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002687/0.002723, allocations: 496.1 kB / 377.7 MB, free: 2.523 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003973/0.006696, allocations: 1.289 MB / 379 MB, free: 1.227 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.748e-05/0.006714, allocations: 0 / 379 MB, free: 1.227 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.386e-05/0.006727, allocations: 0 / 379 MB, free: 1.227 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.901e-06/0.006733, allocations: 0 / 379 MB, free: 1.227 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/Utilities.mo:4:3-219:14:writable] Warning: Pure function 'ModelicaTest.Utilities.Strings' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002172/0.008905, allocations: 0.5917 MB / 379.6 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.456e-05/0.008959, allocations: 4 kB / 379.6 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.835e-05/0.008998, allocations: 3.984 kB / 379.6 MB, free: 0.625 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.787e-05/0.009036, allocations: 3.984 kB / 379.6 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.373e-05/0.009059, allocations: 0 / 379.6 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.009067, allocations: 3.938 kB / 379.6 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04215/0.05122, allocations: 3.747 MB / 383.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.476e-05/0.05124, allocations: 0 / 383.4 MB, free: 13.83 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 4.044e-05/0.05128, allocations: 12 kB / 383.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008538/0.05213, allocations: 199.6 kB / 383.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.05214, allocations: 0 / 383.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.05214, allocations: 3.938 kB / 383.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.05214, allocations: 0 / 383.6 MB, free: 13.62 MB / 362.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.0006881/0.05283, allocations: 401.8 kB / 384 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.05289, allocations: 11.97 kB / 384 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.386e-05/0.05294, allocations: 0.9375 kB / 384 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001513/0.05309, allocations: 112.6 kB / 384.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.05311, allocations: 384 / 384.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.05312, allocations: 384 / 384.1 MB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001619/0.05328, allocations: 67.94 kB / 384.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.05329, allocations: 192 / 384.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.05331, allocations: 4.125 kB / 384.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.05331, allocations: 0 / 384.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.847e-05/0.05339, allocations: 29.7 kB / 384.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002034/0.05359, allocations: 104.6 kB / 384.3 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.05374, allocations: 64.72 kB / 384.4 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.114e-05/0.0538, allocations: 33.39 kB / 384.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.194e-05/0.05381, allocations: 0 / 384.4 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.218e-05/0.05391, allocations: 63.16 kB / 384.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/0.05391, allocations: 4 kB / 384.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0003451/0.05425, allocations: 122.7 kB / 384.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.05435, allocations: 84.98 kB / 384.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.05449, allocations: 142.2 kB / 384.8 MB, free: 12.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.05453, allocations: 25.7 kB / 384.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.05463, allocations: 130.9 kB / 385 MB, free: 12.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.477e-05/0.05466, allocations: 0 / 385 MB, free: 12.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.985e-05/0.05472, allocations: 15.38 kB / 385 MB, free: 11.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003985/0.05511, allocations: 496.1 kB / 385.5 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.507e-05/0.05517, allocations: 25.7 kB / 385.5 MB, free: 11.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.981e-05/0.05522, allocations: 37.81 kB / 385.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.05534, allocations: 63.09 kB / 385.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.05535, allocations: 0 / 385.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001861/0.05553, allocations: 89.05 kB / 385.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.0556, allocations: 41.69 kB / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.05561, allocations: 0 / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.05563, allocations: 0 / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.05563, allocations: 0 / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.05564, allocations: 3.938 kB / 385.7 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.456e-05/0.05567, allocations: 4.094 kB / 385.7 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.05568, allocations: 4 kB / 385.7 MB, free: 11.18 MB / 362.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 0.0002017/0.05588, allocations: 178.3 kB / 385.9 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.0559, allocations: 4 kB / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.251e-05/0.05592, allocations: 3 kB / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.05592, allocations: 0 / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.05593, allocations: 3.938 kB / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.05594, allocations: 3.984 kB / 385.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001686/0.0561, allocations: 112.6 kB / 386 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.05611, allocations: 0 / 386 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.303e-06/0.05611, allocations: 0 / 386 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.05611, allocations: 4 kB / 386 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.415e-05/0.05613, allocations: 4 kB / 386 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.05613, allocations: 0 / 386 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.05613, allocations: 0 / 386 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002841/0.05641, allocations: 139.7 kB / 386.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.665e-06/0.05642, allocations: 0 / 386.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.05644, allocations: 0 / 386.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.7e-05/0.05646, allocations: 3.938 kB / 386.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.172e-05/0.05649, allocations: 7.984 kB / 386.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.0565, allocations: 3.938 kB / 386.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.0566, allocations: 127.2 kB / 386.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.0566, allocations: 0 / 386.3 MB, free: 10.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005861/0.05719, allocations: 63.88 kB / 386.4 MB, free: 10.45 MB / 362.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.002317/0.05951, allocations: 449.8 kB / 386.8 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002632/0.05977, allocations: 122.5 kB / 386.9 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.05977, allocations: 0 / 386.9 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001325/0.05991, allocations: 92.73 kB / 387 MB, free: 9.836 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.06012, allocations: 7.984 kB / 387 MB, free: 9.828 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003653/0.06049, allocations: 117.7 kB / 387.1 MB, free: 9.676 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.648e-05/0.06059, allocations: 59.3 kB / 387.2 MB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.373e-06/0.06059, allocations: 3.938 kB / 387.2 MB, free: 9.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.66e-05/0.06062, allocations: 8.5 kB / 387.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.06062, allocations: 0 / 387.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of Templates: time 0.008902/0.06952, allocations: 2.179 MB / 389.4 MB, free: 7.41 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.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: 5.057047259062529]