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.001903/0.001903, allocations: 84.34 kB / 20.95 MB, free: 3.449 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.002384/0.002384, allocations: 165.3 kB / 24.27 MB, free: 144 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 1.612/1.612, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 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.3436/0.3436, allocations: 32.79 MB / 293.9 MB, free: 1.223 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.283e-06/1.283e-06, allocations: 0 / 375.2 MB, free: 5.023 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.656e-05/2.784e-05, allocations: 9.344 kB / 375.2 MB, free: 5.016 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001495/0.001523, allocations: 496.9 kB / 375.7 MB, free: 4.527 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002713/0.004236, allocations: 1.27 MB / 377 MB, free: 3.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.269e-05/0.004249, allocations: 0 / 377 MB, free: 3.25 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.938e-06/0.004259, allocations: 3.938 kB / 377 MB, free: 3.246 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.929e-06/0.004264, allocations: 4 kB / 377 MB, free: 3.242 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.001592/0.005856, allocations: 0.5839 MB / 377.6 MB, free: 2.656 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 4.969e-05/0.005906, allocations: 4 kB / 377.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.899e-05/0.005935, allocations: 4 kB / 377.6 MB, free: 2.648 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.497e-05/0.00596, allocations: 3.984 kB / 377.6 MB, free: 2.645 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.707e-05/0.005977, allocations: 0 / 377.6 MB, free: 2.645 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.005983, allocations: 4 kB / 377.6 MB, free: 2.641 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02059/0.02657, allocations: 3.734 MB / 381.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.758e-06/0.02658, allocations: 0 / 381.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.02661, allocations: 0 / 381.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000435/0.02705, allocations: 211.5 kB / 381.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.02705, allocations: 7.984 kB / 381.5 MB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.02705, allocations: 0 / 381.5 MB, free: 15.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.02706, allocations: 0 / 381.5 MB, free: 15.65 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.0003891/0.02745, allocations: 303.8 kB / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.02749, allocations: 8.031 kB / 381.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.017e-05/0.02753, allocations: 4.938 kB / 381.9 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.318e-05/0.02762, allocations: 101.8 kB / 382 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-06/0.02763, allocations: 384 / 382 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.222e-06/0.02764, allocations: 384 / 382 MB, free: 15.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.8e-05/0.02774, allocations: 63.95 kB / 382 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.02775, allocations: 4.125 kB / 382 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.02776, allocations: 8.125 kB / 382 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.02776, allocations: 0 / 382 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.414e-05/0.0278, allocations: 29.7 kB / 382.1 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001241/0.02792, allocations: 93.33 kB / 382.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.247e-05/0.02799, allocations: 44.31 kB / 382.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.9e-05/0.02803, allocations: 34.56 kB / 382.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.874e-06/0.02804, allocations: 0 / 382.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.34e-05/0.02811, allocations: 64.31 kB / 382.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 5.91e-07/0.02811, allocations: 0 / 382.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002248/0.02834, allocations: 114.8 kB / 382.4 MB, free: 14.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.02842, allocations: 89.08 kB / 382.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.02849, allocations: 93.84 kB / 382.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.0285, allocations: 29.7 kB / 382.6 MB, free: 14.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.02855, allocations: 80.14 kB / 382.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.02857, allocations: 0 / 382.7 MB, free: 14.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.0286, allocations: 9.719 kB / 382.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.02877, allocations: 314.8 kB / 383 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.729e-05/0.0288, allocations: 25.7 kB / 383 MB, free: 13.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.649e-05/0.02882, allocations: 25.7 kB / 383.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.346e-05/0.0289, allocations: 76.25 kB / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.0289, allocations: 0 / 383.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001058/0.02901, allocations: 89.11 kB / 383.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.807e-05/0.02904, allocations: 33.7 kB / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.02905, allocations: 0 / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/0.02907, allocations: 0 / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-07/0.02907, allocations: 0 / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.02908, allocations: 3.938 kB / 383.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.0291, allocations: 3.984 kB / 383.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-06/0.0291, allocations: 7.938 kB / 383.3 MB, free: 13.65 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 0.0001126/0.02922, allocations: 139.6 kB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.02923, allocations: 4 kB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.724e-06/0.02924, allocations: 3 kB / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.02924, allocations: 0 / 383.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.02924, allocations: 3.938 kB / 383.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.02925, allocations: 3.984 kB / 383.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.02935, allocations: 105.2 kB / 383.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.02935, allocations: 0 / 383.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.02935, allocations: 3.938 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.02936, allocations: 0 / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.47e-06/0.02936, allocations: 0 / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.02936, allocations: 4 kB / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.02936, allocations: 0 / 383.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001424/0.0295, allocations: 120.5 kB / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-06/0.02951, allocations: 4 kB / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.02952, allocations: 0 / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.546e-06/0.02953, allocations: 0 / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.325e-05/0.02954, allocations: 0 / 383.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.02955, allocations: 7.938 kB / 383.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.467e-05/0.0296, allocations: 75.28 kB / 383.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0296, allocations: 0 / 383.7 MB, free: 13.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003107/0.02991, allocations: 71.89 kB / 383.8 MB, free: 13.04 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.001132/0.03104, allocations: 444.9 kB / 384.2 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.03118, allocations: 122.7 kB / 384.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.03118, allocations: 0 / 384.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.501e-05/0.03125, allocations: 85.17 kB / 384.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001355/0.03138, allocations: 3.938 kB / 384.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002443/0.03163, allocations: 112 kB / 384.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.483e-05/0.03169, allocations: 59.3 kB / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.94e-06/0.0317, allocations: 0 / 384.6 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.179e-05/0.03172, allocations: 12.5 kB / 384.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.03172, allocations: 0 / 384.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of Templates: time 0.00608/0.0378, allocations: 2.189 MB / 386.8 MB, free: 10.03 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=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.919381921063177]