Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009709/0.0009709, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.0009629/0.0009629, allocations: 165 kB / 24.56 MB, free: 8 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 0.98/0.98, allocations: 177.1 MB / 205 MB, free: 5.633 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.278/0.278, allocations: 32.81 MB / 294.3 MB, free: 1.27 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: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.367e-06/3.367e-06, allocations: 4 kB / 376 MB, free: 4.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.879e-05, allocations: 2.312 kB / 376 MB, free: 4.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001194/0.001223, allocations: 0.4961 MB / 376.5 MB, free: 4.188 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.003022, allocations: 1.293 MB / 377.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.365e-05/0.003046, allocations: 0 / 377.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.003068, allocations: 0 / 377.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.003075, allocations: 7.938 kB / 377.8 MB, free: 2.879 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220: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.001403/0.004478, allocations: 0.5917 MB / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.668e-05/0.004524, allocations: 0 / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.057e-05/0.004555, allocations: 0 / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.642e-05/0.004581, allocations: 7.984 kB / 378.4 MB, free: 2.277 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.96e-05/0.004601, allocations: 3.984 kB / 378.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.614e-06/0.004608, allocations: 0 / 378.4 MB, free: 2.273 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009452/0.01406, allocations: 3.729 MB / 382.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.359e-05/0.01407, allocations: 0 / 382.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.0141, allocations: 0 / 382.1 MB, free: 15.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.01447, allocations: 211.5 kB / 382.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.01447, allocations: 4 kB / 382.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01447, allocations: 0 / 382.3 MB, free: 15.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.503e-06/0.01448, allocations: 0 / 382.3 MB, free: 15.29 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.0003679/0.01485, allocations: 401.8 kB / 382.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.01489, allocations: 12.03 kB / 382.7 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.01493, allocations: 8.875 kB / 382.7 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.247e-05/0.01501, allocations: 108.6 kB / 382.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.01503, allocations: 384 / 382.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.295e-05/0.01504, allocations: 4.375 kB / 382.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.01515, allocations: 55.97 kB / 382.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.01516, allocations: 192 / 382.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.01518, allocations: 8.125 kB / 382.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.01519, allocations: 0 / 382.9 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.274e-05/0.01521, allocations: 29.64 kB / 382.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001134/0.01532, allocations: 108.6 kB / 383.1 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.266e-05/0.01538, allocations: 56.75 kB / 383.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.26e-05/0.01545, allocations: 37.48 kB / 383.1 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.979e-06/0.01545, allocations: 0 / 383.1 MB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.0155, allocations: 67.09 kB / 383.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.0155, allocations: 0 / 383.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002013/0.0157, allocations: 118.7 kB / 383.3 MB, free: 14.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/0.01574, allocations: 85.05 kB / 383.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.291e-05/0.01579, allocations: 142.2 kB / 383.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.0158, allocations: 25.7 kB / 383.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.076e-05/0.01583, allocations: 126.9 kB / 383.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.237e-05/0.01585, allocations: 8.062 kB / 383.7 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.054e-05/0.01588, allocations: 23.38 kB / 383.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.01608, allocations: 492.1 kB / 384.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.0161, allocations: 29.69 kB / 384.2 MB, free: 13.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.693e-05/0.01612, allocations: 29.7 kB / 384.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.01e-05/0.01617, allocations: 67.03 kB / 384.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.247e-06/0.01617, allocations: 0 / 384.3 MB, free: 13.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.15e-05/0.01625, allocations: 89.11 kB / 384.4 MB, free: 12.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.01627, allocations: 33.69 kB / 384.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.01628, allocations: 96 / 384.5 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.0163, allocations: 4 kB / 384.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.298e-06/0.0163, allocations: 0 / 384.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.01631, allocations: 3.938 kB / 384.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.53e-05/0.01632, allocations: 4 kB / 384.5 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.01633, allocations: 0 / 384.5 MB, free: 12.86 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 6.863e-05/0.0164, allocations: 178.3 kB / 384.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-06/0.0164, allocations: 7.938 kB / 384.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.436e-05/0.01642, allocations: 6.984 kB / 384.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-06/0.01642, allocations: 0 / 384.7 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.01643, allocations: 7.922 kB / 384.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.01643, allocations: 4 kB / 384.7 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.768e-05/0.01649, allocations: 112.6 kB / 384.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.01649, allocations: 0 / 384.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-07/0.01649, allocations: 0 / 384.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.01649, allocations: 0 / 384.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.0165, allocations: 3.938 kB / 384.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.0165, allocations: 0 / 384.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.0165, allocations: 0 / 384.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.823e-05/0.0166, allocations: 131.8 kB / 384.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.54e-06/0.0166, allocations: 4 kB / 384.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.483e-05/0.01662, allocations: 4.031 kB / 384.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.264e-06/0.01662, allocations: 4 kB / 384.9 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.387e-05/0.01664, allocations: 3.984 kB / 384.9 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.01664, allocations: 3.938 kB / 384.9 MB, free: 12.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.041e-05/0.01667, allocations: 119.2 kB / 385 MB, free: 12.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01667, allocations: 0 / 385 MB, free: 12.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002382/0.01691, allocations: 67.88 kB / 385.1 MB, free: 12.12 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.0008124/0.01772, allocations: 456.9 kB / 385.6 MB, free: 11.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001198/0.01784, allocations: 122.4 kB / 385.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.01784, allocations: 0 / 385.7 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.101e-05/0.01787, allocations: 92.78 kB / 385.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.891e-05/0.01797, allocations: 3.375 kB / 385.8 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003608/0.01833, allocations: 113.7 kB / 385.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.632e-05/0.01837, allocations: 67.41 kB / 385.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.123e-06/0.01838, allocations: 0 / 385.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.508e-05/0.01839, allocations: 8.5 kB / 386 MB, free: 11.26 MB / 362.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01839, allocations: 0 / 386 MB, free: 11.26 MB / 362.7 MB Notification: Performance of Templates: time 0.004635/0.02303, allocations: 2.191 MB / 388.1 MB, free: 9.078 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.271958777680993]