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.0009976/0.0009976, 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.001411/0.001411, 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 1.01/1.01, 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.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.2511/0.2511, allocations: 34.26 MB / 295.7 MB, free: 0.7578 MB / 266.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.663e-06/1.663e-06, allocations: 0 / 378 MB, free: 2.688 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.407e-05/2.573e-05, allocations: 2.312 kB / 378 MB, free: 2.684 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001128/0.001153, allocations: 495.9 kB / 378.5 MB, free: 2.199 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001617/0.002771, allocations: 1.301 MB / 379.8 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.442e-05/0.002785, allocations: 0 / 379.8 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.922e-05/0.002804, allocations: 0 / 379.8 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.342e-06/0.002811, allocations: 0 / 379.8 MB, free: 0.8906 MB / 346.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.001299/0.00411, allocations: 0.5918 MB / 380.4 MB, free: 304 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 5.902e-05/0.004169, allocations: 3.984 kB / 380.4 MB, free: 300 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.805e-05/0.004207, allocations: 4 kB / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.293e-05/0.00424, allocations: 0 / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.841e-05/0.004268, allocations: 0 / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 9.358e-06/0.004277, allocations: 0 / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00863/0.01291, allocations: 3.75 MB / 384.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.01292, allocations: 0 / 384.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.599e-05/0.01294, allocations: 0 / 384.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.01324, allocations: 203.6 kB / 384.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.01325, allocations: 0 / 384.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.01325, allocations: 0 / 384.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.01325, allocations: 0 / 384.3 MB, free: 13.3 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.0003248/0.01358, allocations: 409.7 kB / 384.7 MB, free: 12.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.01362, allocations: 12.03 kB / 384.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.934e-05/0.01366, allocations: 0.9375 kB / 384.8 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.676e-05/0.01371, allocations: 104.6 kB / 384.9 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.01373, allocations: 8.375 kB / 384.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.01374, allocations: 4.312 kB / 384.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.546e-05/0.01382, allocations: 59.97 kB / 384.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-06/0.01383, allocations: 192 / 384.9 MB, free: 12.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.01384, allocations: 4.125 kB / 384.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.01385, allocations: 0 / 384.9 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.83e-05/0.01386, allocations: 29.69 kB / 385 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.87e-05/0.01395, allocations: 108.6 kB / 385.1 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.629e-05/0.014, allocations: 52.77 kB / 385.1 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.903e-05/0.01402, allocations: 41.42 kB / 385.2 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.731e-06/0.01402, allocations: 7.984 kB / 385.2 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.01406, allocations: 59.09 kB / 385.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.01406, allocations: 0 / 385.2 MB, free: 12.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001679/0.01423, allocations: 122.8 kB / 385.3 MB, free: 12.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.01427, allocations: 81.05 kB / 385.4 MB, free: 12.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.189e-05/0.01431, allocations: 142.2 kB / 385.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.717e-06/0.01432, allocations: 25.7 kB / 385.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.887e-05/0.01435, allocations: 126.9 kB / 385.7 MB, free: 11.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.746e-05/0.01436, allocations: 3.938 kB / 385.7 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.01439, allocations: 27.3 kB / 385.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.0145, allocations: 496.2 kB / 386.2 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.664e-05/0.01451, allocations: 29.64 kB / 386.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.01453, allocations: 33.7 kB / 386.3 MB, free: 11.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.077e-05/0.01457, allocations: 63.09 kB / 386.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.01457, allocations: 0 / 386.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.306e-05/0.01462, allocations: 89.09 kB / 386.4 MB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.01465, allocations: 32.67 kB / 386.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.01465, allocations: 0 / 386.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.01466, allocations: 0 / 386.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.13e-06/0.01467, allocations: 96 / 386.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.01468, allocations: 11.94 kB / 386.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.183e-05/0.01469, allocations: 0 / 386.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.0147, allocations: 3.938 kB / 386.5 MB, free: 10.86 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.217e-05/0.01477, allocations: 190.3 kB / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-06/0.01477, allocations: 0 / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.268e-06/0.01478, allocations: 3 kB / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.01478, allocations: 0 / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.01479, allocations: 3.938 kB / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.01479, allocations: 0 / 386.7 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.917e-05/0.01485, allocations: 108.6 kB / 386.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.01485, allocations: 4 kB / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.543e-06/0.01485, allocations: 3.984 kB / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-06/0.01485, allocations: 0 / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.243e-06/0.01486, allocations: 0 / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.01486, allocations: 4 kB / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01486, allocations: 0 / 386.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.345e-05/0.01496, allocations: 131.8 kB / 386.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-06/0.01496, allocations: 0 / 386.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.01497, allocations: 0 / 386.9 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.116e-06/0.01498, allocations: 11.94 kB / 386.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.015, allocations: 4.031 kB / 386.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.015, allocations: 3.938 kB / 386.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.136e-05/0.01503, allocations: 119.2 kB / 387.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.01503, allocations: 0 / 387.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002171/0.01525, allocations: 75.8 kB / 387.1 MB, free: 10.12 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.0007093/0.01596, allocations: 455.1 kB / 387.6 MB, free: 9.766 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.908e-05/0.01606, allocations: 122.5 kB / 387.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.01606, allocations: 0 / 387.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.77e-05/0.01609, allocations: 92.8 kB / 387.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.574e-05/0.01617, allocations: 0 / 387.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001728/0.01635, allocations: 117.6 kB / 387.9 MB, free: 9.352 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.083e-05/0.01638, allocations: 63.23 kB / 388 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.933e-06/0.01638, allocations: 0 / 388 MB, free: 9.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.151e-05/0.0164, allocations: 12.62 kB / 388 MB, free: 9.258 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.0164, allocations: 0 / 388 MB, free: 9.258 MB / 362.7 MB Notification: Performance of Templates: time 0.004102/0.0205, allocations: 2.557 MB / 390.5 MB, free: 6.703 MB / 362.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.194945225957781]