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.001567/0.001567, allocations: 79.62 kB / 20.68 MB, free: 1.027 MB / 14.72 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.002326/0.002326, allocations: 164.8 kB / 23.95 MB, free: 4.156 MB / 14.72 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.413/1.413, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.1 MB " [Timeout remaining time 178] 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.1985/0.1985, allocations: 32.81 MB / 293.5 MB, free: 60 kB / 270.1 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.163e-06/1.163e-06, allocations: 0 / 440.1 MB, free: 8.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.003e-05, allocations: 2.281 kB / 440.1 MB, free: 8.215 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001298/0.001318, allocations: 496.5 kB / 440.5 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.003821, allocations: 1.269 MB / 441.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.132e-05/0.003832, allocations: 0 / 441.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.54e-05/0.003848, allocations: 0 / 441.8 MB, free: 6.457 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.889e-06/0.003853, allocations: 0 / 441.8 MB, free: 6.457 MB / 366.1 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.001535/0.005388, allocations: 0.5839 MB / 442.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.183e-05/0.005429, allocations: 0 / 442.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.5e-05/0.005464, allocations: 7.984 kB / 442.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.06e-05/0.005485, allocations: 0 / 442.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.711e-05/0.005502, allocations: 4 kB / 442.4 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.141e-06/0.005508, allocations: 0 / 442.4 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01663/0.02214, allocations: 2.532 MB / 444.9 MB, free: 3.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.267e-06/0.02215, allocations: 3.938 kB / 444.9 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.02217, allocations: 0 / 444.9 MB, free: 3.844 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004452/0.02262, allocations: 215.5 kB / 445.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.02262, allocations: 0 / 445.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.02262, allocations: 0 / 445.2 MB, free: 3.633 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.02263, allocations: 4 kB / 445.2 MB, free: 3.629 MB / 366.1 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.0004339/0.02306, allocations: 303.8 kB / 445.5 MB, free: 3.297 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.0231, allocations: 12.03 kB / 445.5 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.2e-05/0.02313, allocations: 0.9375 kB / 445.5 MB, free: 3.285 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.551e-05/0.02322, allocations: 105.8 kB / 445.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.254e-05/0.02323, allocations: 384 / 445.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.02324, allocations: 4.375 kB / 445.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.02336, allocations: 55.91 kB / 445.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.02337, allocations: 192 / 445.6 MB, free: 3.086 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.02339, allocations: 8.125 kB / 445.6 MB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.02339, allocations: 4 kB / 445.6 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.357e-05/0.02342, allocations: 25.7 kB / 445.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001233/0.02355, allocations: 97.33 kB / 445.8 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.832e-05/0.02363, allocations: 48.27 kB / 445.8 MB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.313e-05/0.02366, allocations: 34.66 kB / 445.8 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.677e-06/0.02367, allocations: 0 / 445.8 MB, free: 2.812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/0.02372, allocations: 60.2 kB / 445.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.02372, allocations: 0 / 445.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002297/0.02395, allocations: 118.8 kB / 446 MB, free: 2.598 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.02401, allocations: 85.05 kB / 446.1 MB, free: 2.496 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.554e-05/0.02407, allocations: 93.98 kB / 446.2 MB, free: 2.395 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.02408, allocations: 25.7 kB / 446.2 MB, free: 2.363 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.455e-05/0.02412, allocations: 80.14 kB / 446.3 MB, free: 2.281 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.883e-05/0.02413, allocations: 0 / 446.3 MB, free: 2.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.018e-05/0.02416, allocations: 13.72 kB / 446.3 MB, free: 2.262 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.02431, allocations: 314.8 kB / 446.6 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.951e-05/0.02434, allocations: 29.69 kB / 446.6 MB, free: 1.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.251e-05/0.02436, allocations: 29.7 kB / 446.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.531e-05/0.02441, allocations: 64.2 kB / 446.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.02442, allocations: 0 / 446.7 MB, free: 1.797 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.869e-05/0.0245, allocations: 89.17 kB / 446.8 MB, free: 1.691 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/0.02455, allocations: 37.69 kB / 446.9 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.02456, allocations: 3.984 kB / 446.9 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.02457, allocations: 0 / 446.9 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.806e-06/0.02457, allocations: 7.938 kB / 446.9 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.02458, allocations: 3.938 kB / 446.9 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.02459, allocations: 0 / 446.9 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.0246, allocations: 7.938 kB / 446.9 MB, free: 1.625 MB / 366.1 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 9.011e-05/0.02469, allocations: 131.5 kB / 447 MB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.968e-06/0.0247, allocations: 8.031 kB / 447 MB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.037e-05/0.02471, allocations: 3 kB / 447 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.02471, allocations: 3.984 kB / 447 MB, free: 1.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.02472, allocations: 3.938 kB / 447 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-06/0.02472, allocations: 0 / 447 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.434e-05/0.0248, allocations: 93.33 kB / 447.1 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.02481, allocations: 4 kB / 447.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.02481, allocations: 3.938 kB / 447.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.02481, allocations: 0 / 447.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.02481, allocations: 0 / 447.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.02481, allocations: 0 / 447.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.02482, allocations: 4 kB / 447.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.02494, allocations: 120.5 kB / 447.3 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-06/0.02495, allocations: 0 / 447.3 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.02496, allocations: 4 kB / 447.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.586e-06/0.02497, allocations: 0 / 447.3 MB, free: 1.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.895e-05/0.02499, allocations: 7.984 kB / 447.3 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.02499, allocations: 3.938 kB / 447.3 MB, free: 1.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.636e-05/0.02503, allocations: 79.28 kB / 447.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.02503, allocations: 0 / 447.3 MB, free: 1.086 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.02531, allocations: 67.81 kB / 447.4 MB, free: 1.02 MB / 366.1 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.001056/0.02636, allocations: 441.5 kB / 447.8 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000135/0.0265, allocations: 118.8 kB / 448 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.0265, allocations: 0 / 448 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.185e-05/0.02656, allocations: 85.09 kB / 448 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001299/0.02669, allocations: 128 / 448 MB, free: 440 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002039/0.0269, allocations: 110.6 kB / 448.2 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.142e-05/0.02695, allocations: 59.3 kB / 448.2 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.27e-06/0.02695, allocations: 0 / 448.2 MB, free: 216 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.02697, allocations: 16.48 kB / 448.2 MB, free: 200 kB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.02697, allocations: 0 / 448.2 MB, free: 200 kB / 366.1 MB Notification: Performance of Templates: time 0.1748/0.2018, allocations: 2.168 MB / 450.4 MB, free: 21.54 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.6802249029278755]