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.001401/0.001401, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.001108/0.001108, allocations: 170.5 kB / 25.61 MB, free: 8.902 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 1.003/1.003, allocations: 177.1 MB / 206.1 MB, free: 4.52 MB / 186.7 MB " [Timeout remaining time 179] 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.1524/0.1524, allocations: 34.26 MB / 296.9 MB, free: 13.94 MB / 282.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.422e-06/1.422e-06, allocations: 0 / 379.3 MB, free: 23.46 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.025e-05/3.167e-05, allocations: 6.312 kB / 379.3 MB, free: 23.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002062/0.002094, allocations: 489 kB / 379.7 MB, free: 22.97 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002504/0.004598, allocations: 1.277 MB / 381 MB, free: 21.69 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.064e-05/0.004629, allocations: 0 / 381 MB, free: 21.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.00465, allocations: 0 / 381 MB, free: 21.69 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.556e-06/0.004659, allocations: 0 / 381 MB, free: 21.69 MB / 314.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.00237/0.007028, allocations: 0.5995 MB / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 6.588e-05/0.007094, allocations: 0 / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.446e-05/0.007138, allocations: 0 / 381.6 MB, free: 21.09 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.236e-05/0.007171, allocations: 4 kB / 381.6 MB, free: 21.08 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.835e-05/0.007199, allocations: 4 kB / 381.6 MB, free: 21.08 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-06/0.007207, allocations: 0 / 381.6 MB, free: 21.08 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0135/0.02071, allocations: 3.734 MB / 385.4 MB, free: 18.33 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.157e-05/0.02072, allocations: 0 / 385.4 MB, free: 18.33 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.009e-05/0.02074, allocations: 4 kB / 385.4 MB, free: 18.33 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00036/0.0211, allocations: 211.5 kB / 385.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.02111, allocations: 0 / 385.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.02111, allocations: 0 / 385.6 MB, free: 18.12 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.02111, allocations: 4 kB / 385.6 MB, free: 18.12 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.0003325/0.02145, allocations: 409.8 kB / 386 MB, free: 17.68 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/0.0215, allocations: 8.031 kB / 386 MB, free: 17.67 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.418e-05/0.02154, allocations: 4.922 kB / 386 MB, free: 17.66 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.692e-05/0.02161, allocations: 108.6 kB / 386.1 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.689e-05/0.02163, allocations: 384 / 386.1 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.02163, allocations: 384 / 386.1 MB, free: 17.53 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.623e-05/0.02173, allocations: 59.91 kB / 386.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.02174, allocations: 192 / 386.2 MB, free: 17.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.02175, allocations: 8.062 kB / 386.2 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.02176, allocations: 7.984 kB / 386.2 MB, free: 17.45 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.293e-05/0.02178, allocations: 29.7 kB / 386.2 MB, free: 17.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.833e-05/0.02187, allocations: 97.25 kB / 386.3 MB, free: 17.29 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.539e-05/0.02192, allocations: 52.8 kB / 386.3 MB, free: 17.22 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.72e-05/0.02194, allocations: 33.39 kB / 386.4 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.509e-06/0.02195, allocations: 0 / 386.4 MB, free: 17.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.02199, allocations: 67.09 kB / 386.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 2.034e-06/0.02199, allocations: 0 / 386.4 MB, free: 17.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000178/0.02217, allocations: 114.8 kB / 386.6 MB, free: 16.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.0222, allocations: 81.11 kB / 386.6 MB, free: 16.86 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.25e-05/0.02223, allocations: 150.3 kB / 386.8 MB, free: 16.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.531e-06/0.02224, allocations: 25.7 kB / 386.8 MB, free: 16.67 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.635e-05/0.02225, allocations: 126.9 kB / 386.9 MB, free: 16.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.02228, allocations: 4 kB / 386.9 MB, free: 16.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.063e-05/0.02231, allocations: 19.36 kB / 387 MB, free: 16.51 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.34e-05/0.02237, allocations: 492.1 kB / 387.4 MB, free: 16.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.373e-05/0.02238, allocations: 29.7 kB / 387.5 MB, free: 15.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.225e-05/0.0224, allocations: 25.7 kB / 387.5 MB, free: 15.95 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.631e-05/0.02244, allocations: 67.03 kB / 387.6 MB, free: 15.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.02244, allocations: 4.062 kB / 387.6 MB, free: 15.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.467e-05/0.02252, allocations: 93.09 kB / 387.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.02255, allocations: 29.7 kB / 387.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.02256, allocations: 0 / 387.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.02257, allocations: 0 / 387.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.81e-07/0.02257, allocations: 4 kB / 387.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-06/0.02257, allocations: 4 kB / 387.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.969e-05/0.02259, allocations: 3.938 kB / 387.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.0226, allocations: 0 / 387.7 MB, free: 15.71 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 5.568e-05/0.02265, allocations: 186.3 kB / 387.9 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.406e-06/0.02266, allocations: 4.031 kB / 387.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.134e-05/0.02267, allocations: 3 kB / 387.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.02268, allocations: 3.938 kB / 387.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.02268, allocations: 4 kB / 387.9 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.02268, allocations: 3.938 kB / 387.9 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.074e-05/0.02273, allocations: 93.25 kB / 388 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.02273, allocations: 3.938 kB / 388 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.02274, allocations: 0 / 388 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.02274, allocations: 0 / 388 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.02274, allocations: 4 kB / 388 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.02274, allocations: 3.984 kB / 388 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.02275, allocations: 4 kB / 388 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.801e-05/0.02284, allocations: 127.8 kB / 388.1 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.931e-06/0.02285, allocations: 3.984 kB / 388.1 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.02286, allocations: 4 kB / 388.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-06/0.02287, allocations: 0 / 388.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.125e-05/0.02288, allocations: 0 / 388.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.02289, allocations: 0 / 388.1 MB, free: 15.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.723e-05/0.0229, allocations: 119.2 kB / 388.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0229, allocations: 0 / 388.2 MB, free: 15.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003154/0.02322, allocations: 79.73 kB / 388.3 MB, free: 15 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.0009657/0.02418, allocations: 457.6 kB / 388.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.948e-05/0.02428, allocations: 126.4 kB / 388.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.02429, allocations: 0 / 388.9 MB, free: 14.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.27e-05/0.02431, allocations: 92.86 kB / 389 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001255/0.02443, allocations: 3.938 kB / 389 MB, free: 14.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000181/0.02462, allocations: 111.6 kB / 389.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.501e-05/0.02464, allocations: 63.2 kB / 389.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.963e-06/0.02465, allocations: 0 / 389.2 MB, free: 14.13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.294e-05/0.02469, allocations: 70.2 kB / 389.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.022e-06/0.02469, allocations: 0 / 389.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of Templates: time 0.005489/0.03018, allocations: 2.565 MB / 391.8 MB, free: 11.51 MB / 314.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","",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.3018936621956527]