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.001072/0.001072, allocations: 67.77 kB / 21.69 MB, free: 2.855 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.001674/0.001674, allocations: 162 kB / 24.99 MB, free: 9.32 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.9969/0.9969, allocations: 177.1 MB / 205.3 MB, free: 5.625 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.255/0.255, allocations: 34.25 MB / 296 MB, free: 0.7656 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.593e-06/1.593e-06, allocations: 0 / 378 MB, free: 2.977 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.558e-05/2.717e-05, allocations: 2.312 kB / 378 MB, free: 2.973 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001516/0.001543, allocations: 496.9 kB / 378.5 MB, free: 2.484 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.003629, allocations: 1.289 MB / 379.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.253e-05/0.003652, allocations: 0 / 379.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 1.49e-05/0.003667, allocations: 0 / 379.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.003673, allocations: 0 / 379.8 MB, free: 1.188 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.001719/0.005392, allocations: 0.5956 MB / 380.4 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 6.569e-05/0.005458, allocations: 4 kB / 380.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.035e-05/0.005498, allocations: 4 kB / 380.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.529e-05/0.005534, allocations: 0 / 380.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.716e-05/0.005561, allocations: 0 / 380.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.005571, allocations: 0 / 380.4 MB, free: 0.582 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009107/0.01468, allocations: 3.753 MB / 384.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.858e-06/0.01469, allocations: 0 / 384.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.01471, allocations: 4 kB / 384.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.01503, allocations: 207.5 kB / 384.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.01504, allocations: 0 / 384.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.01504, allocations: 0 / 384.3 MB, free: 13.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.01504, allocations: 0 / 384.3 MB, free: 13.59 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.0002882/0.01533, allocations: 409.8 kB / 384.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.01537, allocations: 12.02 kB / 384.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.01541, allocations: 0.9375 kB / 384.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.944e-05/0.01547, allocations: 104.6 kB / 384.8 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.01548, allocations: 4.375 kB / 384.8 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.01549, allocations: 4.359 kB / 384.8 MB, free: 13 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.799e-05/0.01558, allocations: 55.97 kB / 384.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.01559, allocations: 4.188 kB / 384.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.01559, allocations: 4.125 kB / 384.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.0156, allocations: 0 / 384.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.847e-05/0.01562, allocations: 33.62 kB / 384.9 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.681e-05/0.01571, allocations: 112.6 kB / 385.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.287e-05/0.01575, allocations: 48.77 kB / 385.1 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.844e-05/0.01577, allocations: 37.48 kB / 385.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.278e-06/0.01577, allocations: 0 / 385.1 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.01581, allocations: 59.09 kB / 385.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.01581, allocations: 0 / 385.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001707/0.01598, allocations: 130.7 kB / 385.3 MB, free: 12.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.01602, allocations: 81.05 kB / 385.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.237e-05/0.01606, allocations: 142.2 kB / 385.5 MB, free: 12.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.428e-06/0.01607, allocations: 25.7 kB / 385.6 MB, free: 12.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.603e-05/0.01609, allocations: 126.9 kB / 385.7 MB, free: 11.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.01611, allocations: 3.938 kB / 385.7 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.448e-05/0.01614, allocations: 27.3 kB / 385.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.01625, allocations: 492.1 kB / 386.2 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.708e-05/0.01628, allocations: 33.7 kB / 386.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.495e-05/0.0163, allocations: 25.83 kB / 386.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.271e-05/0.01635, allocations: 67.16 kB / 386.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.01635, allocations: 0 / 386.3 MB, free: 11.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.308e-05/0.01642, allocations: 93.03 kB / 386.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.01645, allocations: 29.7 kB / 386.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.01646, allocations: 0 / 386.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.01647, allocations: 0 / 386.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.62e-07/0.01647, allocations: 0 / 386.4 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.01648, allocations: 7.938 kB / 386.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.209e-05/0.01649, allocations: 0 / 386.5 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.0165, allocations: 4.031 kB / 386.5 MB, free: 11.15 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 6.901e-05/0.01657, allocations: 190.3 kB / 386.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.24e-06/0.01657, allocations: 0 / 386.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.136e-06/0.01658, allocations: 3 kB / 386.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.01658, allocations: 0 / 386.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.01659, allocations: 3.938 kB / 386.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.074e-06/0.01659, allocations: 0 / 386.6 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.318e-05/0.01664, allocations: 108.6 kB / 386.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-07/0.01664, allocations: 0 / 386.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.222e-06/0.01664, allocations: 4 kB / 386.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.82e-07/0.01664, allocations: 0 / 386.8 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-06/0.01665, allocations: 4 kB / 386.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.01665, allocations: 7.984 kB / 386.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.01665, allocations: 0 / 386.8 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.099e-05/0.01673, allocations: 131.7 kB / 386.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.91e-06/0.01674, allocations: 3.984 kB / 386.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.01675, allocations: 4 kB / 386.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.471e-06/0.01676, allocations: 0 / 386.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.067e-05/0.01677, allocations: 0 / 386.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.01677, allocations: 3.938 kB / 386.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.709e-05/0.0168, allocations: 119.2 kB / 387 MB, free: 10.49 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0168, allocations: 4.031 kB / 387 MB, free: 10.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002128/0.01701, allocations: 75.8 kB / 387.1 MB, free: 10.41 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.0006909/0.0177, allocations: 453.2 kB / 387.5 MB, free: 10.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.01781, allocations: 130.5 kB / 387.7 MB, free: 9.902 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.01781, allocations: 3.938 kB / 387.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.698e-05/0.01784, allocations: 88.8 kB / 387.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.778e-05/0.01792, allocations: 0 / 387.8 MB, free: 9.789 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001748/0.0181, allocations: 113.7 kB / 387.9 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.291e-05/0.01813, allocations: 63.28 kB / 387.9 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.022e-06/0.01814, allocations: 0 / 387.9 MB, free: 9.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.01815, allocations: 8.5 kB / 387.9 MB, free: 9.551 MB / 362.7 MB Notification: Performance of SimCode: time 1.011e-06/0.01815, allocations: 0 / 387.9 MB, free: 9.551 MB / 362.7 MB Notification: Performance of Templates: time 0.003574/0.02172, allocations: 2.19 MB / 390.1 MB, free: 7.367 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.1533482591621578]