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.001016/0.001016, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001144/0.001144, allocations: 161.5 kB / 25.61 MB, free: 8.582 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.9428/0.9428, allocations: 177.1 MB / 206 MB, free: 4.457 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.1393/0.1393, allocations: 32.8 MB / 295.4 MB, free: 15.36 MB / 282.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 2.014e-06/2.014e-06, allocations: 0 / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.272e-05/3.474e-05, allocations: 2.312 kB / 377.2 MB, free: 25.62 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001704/0.001738, allocations: 0.4964 MB / 377.7 MB, free: 25.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001999/0.003737, allocations: 1.269 MB / 379 MB, free: 23.84 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.078e-05/0.003758, allocations: 0 / 379 MB, free: 23.84 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 1.633e-05/0.003774, allocations: 0 / 379 MB, free: 23.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-06/0.003781, allocations: 0 / 379 MB, free: 23.84 MB / 314.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.001559/0.00534, allocations: 0.5995 MB / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.084e-05/0.005391, allocations: 4 kB / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.005425, allocations: 0 / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.629e-05/0.005452, allocations: 0 / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.067e-05/0.005472, allocations: 0 / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.253e-06/0.00548, allocations: 0 / 379.6 MB, free: 23.24 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008353/0.01383, allocations: 3.745 MB / 383.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.01384, allocations: 0 / 383.3 MB, free: 20.49 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.66e-05/0.01386, allocations: 7.984 kB / 383.3 MB, free: 20.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.01412, allocations: 203.6 kB / 383.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.01412, allocations: 0 / 383.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.01413, allocations: 3.938 kB / 383.5 MB, free: 20.28 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.01413, allocations: 0 / 383.5 MB, free: 20.28 MB / 314.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.0002096/0.01434, allocations: 409.8 kB / 383.9 MB, free: 19.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.01437, allocations: 11.98 kB / 384 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.0144, allocations: 0.9375 kB / 384 MB, free: 19.82 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.451e-05/0.01443, allocations: 108.6 kB / 384.1 MB, free: 19.69 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.01444, allocations: 8.375 kB / 384.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.731e-06/0.01445, allocations: 4.359 kB / 384.1 MB, free: 19.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.404e-05/0.0145, allocations: 55.97 kB / 384.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.902e-06/0.01451, allocations: 4.125 kB / 384.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-06/0.01451, allocations: 4.125 kB / 384.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.01452, allocations: 0 / 384.1 MB, free: 19.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.031e-05/0.01453, allocations: 29.7 kB / 384.2 MB, free: 19.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.034e-05/0.01458, allocations: 89.27 kB / 384.3 MB, free: 19.46 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.207e-05/0.01461, allocations: 60.72 kB / 384.3 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.062e-05/0.01462, allocations: 37.39 kB / 384.4 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-06/0.01463, allocations: 0 / 384.4 MB, free: 19.33 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.01465, allocations: 63.16 kB / 384.4 MB, free: 19.25 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 6.62e-07/0.01465, allocations: 0 / 384.4 MB, free: 19.25 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001143/0.01476, allocations: 122.7 kB / 384.5 MB, free: 19.11 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.889e-05/0.01478, allocations: 77.11 kB / 384.6 MB, free: 19.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.884e-05/0.0148, allocations: 146.2 kB / 384.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-06/0.0148, allocations: 25.7 kB / 384.8 MB, free: 18.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-06/0.01481, allocations: 126.9 kB / 384.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.01483, allocations: 4 kB / 384.9 MB, free: 18.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.761e-05/0.01485, allocations: 15.5 kB / 384.9 MB, free: 18.67 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.561e-05/0.01488, allocations: 496.1 kB / 385.4 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.117e-05/0.01489, allocations: 29.7 kB / 385.4 MB, free: 18.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-06/0.0149, allocations: 29.69 kB / 385.5 MB, free: 18.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.746e-05/0.01493, allocations: 71.08 kB / 385.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.01493, allocations: 0 / 385.5 MB, free: 18.02 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.932e-05/0.01497, allocations: 89.05 kB / 385.6 MB, free: 17.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.01499, allocations: 29.7 kB / 385.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.015, allocations: 3.984 kB / 385.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.733e-06/0.015, allocations: 96 / 385.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.02e-07/0.015, allocations: 8 kB / 385.7 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-06/0.01501, allocations: 0 / 385.7 MB, free: 17.87 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.245e-05/0.01502, allocations: 3.938 kB / 385.7 MB, free: 17.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.01502, allocations: 0 / 385.7 MB, free: 17.86 MB / 314.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.568e-05/0.01506, allocations: 182.3 kB / 385.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.258e-06/0.01506, allocations: 0 / 385.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-06/0.01507, allocations: 3 kB / 385.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.01507, allocations: 0 / 385.8 MB, free: 17.67 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.01507, allocations: 4 kB / 385.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.01508, allocations: 3.938 kB / 385.9 MB, free: 17.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.253e-05/0.01511, allocations: 101.2 kB / 386 MB, free: 17.54 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01511, allocations: 4 kB / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.61e-07/0.01511, allocations: 0 / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.71e-07/0.01511, allocations: 0 / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.977e-06/0.01511, allocations: 4 kB / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.21e-07/0.01512, allocations: 0 / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.01512, allocations: 0 / 386 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.025e-05/0.01517, allocations: 135.7 kB / 386.1 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.977e-06/0.01517, allocations: 0 / 386.1 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.336e-06/0.01518, allocations: 4 kB / 386.1 MB, free: 17.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.258e-06/0.01518, allocations: 4.031 kB / 386.1 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.013e-06/0.01519, allocations: 3.984 kB / 386.1 MB, free: 17.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-06/0.01519, allocations: 0 / 386.1 MB, free: 17.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.109e-05/0.0152, allocations: 119.2 kB / 386.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0152, allocations: 0 / 386.2 MB, free: 17.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001731/0.01538, allocations: 75.8 kB / 386.3 MB, free: 17.16 MB / 314.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.0005982/0.01597, allocations: 453 kB / 386.7 MB, free: 16.8 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.445e-05/0.01604, allocations: 122.4 kB / 386.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01604, allocations: 0 / 386.9 MB, free: 16.65 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.329e-05/0.01605, allocations: 96.73 kB / 387 MB, free: 16.53 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.55e-05/0.01614, allocations: 11.92 kB / 387 MB, free: 16.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00012/0.01626, allocations: 103.6 kB / 387.1 MB, free: 16.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.547e-05/0.01627, allocations: 59.22 kB / 387.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.252e-06/0.01628, allocations: 8.125 kB / 387.1 MB, free: 16.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.423e-05/0.0163, allocations: 74.19 kB / 387.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0163, allocations: 0 / 387.2 MB, free: 16.22 MB / 314.7 MB Notification: Performance of Templates: time 0.003381/0.01969, allocations: 2.579 MB / 389.8 MB, free: 13.65 MB / 314.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.1269924356602132]