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.001061/0.001061, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001363/0.001363, allocations: 161 kB / 24.56 MB, free: 16 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.9694/0.9694, allocations: 177.1 MB / 205 MB, free: 5.637 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.2653/0.2653, allocations: 32.8 MB / 294.3 MB, free: 1.285 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 1.472e-06/1.472e-06, allocations: 0 / 376 MB, free: 4.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.672e-05, allocations: 2.312 kB / 376 MB, free: 4.703 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.003401/0.003427, allocations: 0.4892 MB / 376.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.005437, allocations: 1.293 MB / 377.8 MB, free: 2.91 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.601e-05/0.005453, allocations: 3.938 kB / 377.8 MB, free: 2.906 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.814e-05/0.005471, allocations: 0 / 377.8 MB, free: 2.906 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.392e-06/0.005477, allocations: 0 / 377.8 MB, free: 2.906 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.004421/0.009898, allocations: 0.5995 MB / 378.4 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.383e-05/0.009952, allocations: 0 / 378.4 MB, free: 2.305 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.187e-05/0.009984, allocations: 4 kB / 378.4 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.571e-05/0.01001, allocations: 0 / 378.4 MB, free: 2.301 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.086e-05/0.01003, allocations: 4 kB / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.873e-06/0.01004, allocations: 0 / 378.4 MB, free: 2.297 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.02749, allocations: 3.734 MB / 382.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.0275, allocations: 4 kB / 382.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.596e-05/0.02753, allocations: 0 / 382.1 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.02789, allocations: 207.4 kB / 382.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.02789, allocations: 0 / 382.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.0279, allocations: 4 kB / 382.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.0279, allocations: 0 / 382.3 MB, free: 15.32 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.0003292/0.02823, allocations: 413.7 kB / 382.7 MB, free: 14.87 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.02827, allocations: 8.031 kB / 382.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.237e-05/0.02831, allocations: 4.938 kB / 382.7 MB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.982e-05/0.02837, allocations: 104.6 kB / 382.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.02838, allocations: 384 / 382.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.02839, allocations: 384 / 382.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.645e-05/0.02847, allocations: 59.91 kB / 382.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.02848, allocations: 192 / 382.9 MB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.02849, allocations: 8.125 kB / 382.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.0285, allocations: 0 / 382.9 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.061e-05/0.02852, allocations: 33.69 kB / 382.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.847e-05/0.02861, allocations: 104.6 kB / 383 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.138e-05/0.02866, allocations: 60.78 kB / 383.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.009e-05/0.02868, allocations: 33.39 kB / 383.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-06/0.02868, allocations: 0 / 383.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.02873, allocations: 63.16 kB / 383.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.02873, allocations: 3.938 kB / 383.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.0289, allocations: 118.8 kB / 383.3 MB, free: 14.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.02894, allocations: 85.17 kB / 383.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.688e-05/0.02899, allocations: 142.2 kB / 383.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.029, allocations: 29.7 kB / 383.6 MB, free: 13.84 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.907e-05/0.02903, allocations: 126.9 kB / 383.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.02905, allocations: 3.938 kB / 383.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.02907, allocations: 19.36 kB / 383.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.02918, allocations: 496.1 kB / 384.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.111e-05/0.0292, allocations: 29.7 kB / 384.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.285e-05/0.02921, allocations: 25.7 kB / 384.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.661e-05/0.02926, allocations: 67.09 kB / 384.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.02926, allocations: 4 kB / 384.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.294e-05/0.02934, allocations: 89.09 kB / 384.4 MB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.02936, allocations: 33.7 kB / 384.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.02937, allocations: 4 kB / 384.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.02938, allocations: 0 / 384.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.526e-06/0.02939, allocations: 0 / 384.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.02939, allocations: 3.938 kB / 384.4 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.448e-05/0.02941, allocations: 3.938 kB / 384.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.631e-06/0.02941, allocations: 0 / 384.5 MB, free: 12.88 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 7.944e-05/0.02949, allocations: 194.3 kB / 384.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-06/0.0295, allocations: 4 kB / 384.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-06/0.02951, allocations: 3 kB / 384.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.02951, allocations: 0 / 384.6 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.02951, allocations: 3.938 kB / 384.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.02952, allocations: 0 / 384.7 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.98e-05/0.02957, allocations: 108.6 kB / 384.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.02957, allocations: 4 kB / 384.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.02957, allocations: 0 / 384.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.02957, allocations: 3.984 kB / 384.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.201e-06/0.02958, allocations: 0 / 384.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.02958, allocations: 4 kB / 384.8 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.02958, allocations: 0 / 384.8 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.301e-05/0.02966, allocations: 135.8 kB / 384.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.886e-06/0.02966, allocations: 4 kB / 384.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.388e-05/0.02968, allocations: 0 / 384.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.881e-06/0.02968, allocations: 0 / 384.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.0297, allocations: 0 / 384.9 MB, free: 12.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.0297, allocations: 7.938 kB / 384.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.556e-05/0.02973, allocations: 119.2 kB / 385 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02973, allocations: 0 / 385 MB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002242/0.02995, allocations: 67.89 kB / 385.1 MB, free: 12.15 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.000827/0.03078, allocations: 455.5 kB / 385.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.0309, allocations: 122.5 kB / 385.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.0309, allocations: 4 kB / 385.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.509e-05/0.03093, allocations: 88.86 kB / 385.8 MB, free: 11.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.03105, allocations: 7.984 kB / 385.8 MB, free: 11.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001943/0.03125, allocations: 113.6 kB / 385.9 MB, free: 11.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.12e-05/0.03128, allocations: 55.3 kB / 385.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.751e-06/0.03128, allocations: 0 / 385.9 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.505e-05/0.0313, allocations: 12.5 kB / 385.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0313, allocations: 0 / 385.9 MB, free: 11.29 MB / 362.7 MB Notification: Performance of Templates: time 0.004261/0.03556, allocations: 2.582 MB / 388.5 MB, free: 8.711 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.2180620240978897]