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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001868/0.003054, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001518/0.002562, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.876/0.876, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1705/1.047, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.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.1468/0.1468, allocations: 32.79 MB / 272 MB, free: 6.293 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01751/0.1643, allocations: 12.54 MB / 284.5 MB, free: 9.707 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.152e-06/1.152e-06, allocations: 0 / 285.8 MB, free: 8.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.699e-06/1.085e-05, allocations: 2.312 kB / 285.8 MB, free: 8.438 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0008522/0.0008631, allocations: 0.5442 MB / 286.4 MB, free: 7.895 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.002237, allocations: 1.315 MB / 287.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.192e-05/0.002249, allocations: 0 / 287.7 MB, free: 6.574 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 4.758e-06/0.002253, allocations: 3.938 kB / 287.7 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.81e-07/0.002254, allocations: 0 / 287.7 MB, free: 6.57 MB / 282.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.0009257/0.00318, allocations: 0.5059 MB / 288.2 MB, free: 6.062 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.325e-05/0.003223, allocations: 8 kB / 288.2 MB, free: 6.055 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.847e-05/0.003252, allocations: 4 kB / 288.2 MB, free: 6.051 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.97e-05/0.003281, allocations: 11.92 kB / 288.2 MB, free: 6.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.327e-05/0.003305, allocations: 7.922 kB / 288.2 MB, free: 6.031 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.021e-06/0.003311, allocations: 0 / 288.2 MB, free: 6.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008424/0.01174, allocations: 3.778 MB / 292 MB, free: 3.238 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.001e-05/0.01175, allocations: 0 / 292 MB, free: 3.238 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.09e-05/0.01176, allocations: 0 / 292 MB, free: 3.238 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002336/0.01199, allocations: 175.6 kB / 292.2 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.012, allocations: 0 / 292.2 MB, free: 3.066 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.012, allocations: 0 / 292.2 MB, free: 3.066 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.196e-06/0.01201, allocations: 0 / 292.2 MB, free: 3.066 MB / 282.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.0002481/0.01226, allocations: 310.1 kB / 292.5 MB, free: 2.734 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.569e-05/0.01228, allocations: 8.031 kB / 292.5 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.856e-05/0.01231, allocations: 0.9375 kB / 292.5 MB, free: 2.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.345e-05/0.01236, allocations: 105.8 kB / 292.6 MB, free: 2.598 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.195e-06/0.01237, allocations: 4.375 kB / 292.6 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.176e-06/0.01238, allocations: 384 / 292.6 MB, free: 2.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.815e-05/0.01244, allocations: 59.95 kB / 292.6 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.01244, allocations: 192 / 292.6 MB, free: 2.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.582e-06/0.01245, allocations: 4.125 kB / 292.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.01246, allocations: 0 / 292.6 MB, free: 2.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.655e-05/0.01247, allocations: 33.64 kB / 292.7 MB, free: 2.48 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.353e-05/0.01254, allocations: 53.05 kB / 292.7 MB, free: 2.414 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.676e-05/0.01257, allocations: 48.3 kB / 292.8 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.448e-05/0.01259, allocations: 34.56 kB / 292.8 MB, free: 2.309 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-06/0.01259, allocations: 4 kB / 292.8 MB, free: 2.305 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.01262, allocations: 64.33 kB / 292.9 MB, free: 2.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 2.144e-06/0.01262, allocations: 3.984 kB / 292.9 MB, free: 2.223 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001005/0.01272, allocations: 118.7 kB / 293 MB, free: 2.082 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.01279, allocations: 154.2 kB / 293.2 MB, free: 1.895 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.038e-05/0.01282, allocations: 97.8 kB / 293.2 MB, free: 1.789 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.01283, allocations: 25.7 kB / 293.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.912e-05/0.01285, allocations: 80.14 kB / 293.4 MB, free: 1.676 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.01287, allocations: 4 kB / 293.4 MB, free: 1.672 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-05/0.01289, allocations: 9.719 kB / 293.4 MB, free: 1.656 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.693e-05/0.01296, allocations: 322.9 kB / 293.7 MB, free: 1.332 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.363e-05/0.01297, allocations: 29.69 kB / 293.7 MB, free: 1.297 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.689e-06/0.01298, allocations: 25.7 kB / 293.7 MB, free: 1.266 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.695e-05/0.01302, allocations: 60.27 kB / 293.8 MB, free: 1.191 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.01302, allocations: 3.938 kB / 293.8 MB, free: 1.188 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.232e-05/0.01306, allocations: 93.09 kB / 293.9 MB, free: 1.078 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.096e-05/0.01309, allocations: 29.7 kB / 293.9 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.0131, allocations: 0 / 293.9 MB, free: 1.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.01311, allocations: 4 kB / 293.9 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.874e-06/0.01311, allocations: 4.094 kB / 293.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.595e-06/0.01311, allocations: 0 / 293.9 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.415e-05/0.01313, allocations: 7.875 kB / 293.9 MB, free: 1.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.01313, allocations: 0 / 293.9 MB, free: 1.027 MB / 282.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.179e-05/0.01318, allocations: 135.5 kB / 294.1 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-06/0.01319, allocations: 3.984 kB / 294.1 MB, free: 0.875 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.099e-05/0.0132, allocations: 6.953 kB / 294.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.0132, allocations: 0 / 294.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.0132, allocations: 4 kB / 294.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.01321, allocations: 0 / 294.1 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.128e-05/0.01325, allocations: 65.84 kB / 294.1 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.01325, allocations: 4 kB / 294.1 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.3e-07/0.01325, allocations: 0 / 294.1 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.569e-06/0.01325, allocations: 8 kB / 294.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-07/0.01325, allocations: 0 / 294.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-06/0.01326, allocations: 7.922 kB / 294.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.71e-07/0.01326, allocations: 0 / 294.2 MB, free: 0.7578 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.01326, allocations: 3.984 kB / 294.2 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.202e-05/0.01331, allocations: 112.5 kB / 294.3 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.378e-06/0.01332, allocations: 3.984 kB / 294.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.897e-06/0.01332, allocations: 0 / 294.3 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-06/0.01333, allocations: 8.031 kB / 294.3 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.01333, allocations: 4 kB / 294.3 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.089e-06/0.01334, allocations: 4.859 kB / 294.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01334, allocations: 0 / 294.3 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001563/0.0135, allocations: 67.8 kB / 294.4 MB, free: 0.5234 MB / 282.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.0007417/0.01424, allocations: 0.5199 MB / 294.9 MB, free: 156 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.154e-05/0.01432, allocations: 119.6 kB / 295 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.01432, allocations: 0 / 295 MB, free: 8 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.86e-05/0.01436, allocations: 89.95 kB / 295.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 4.414e-05/0.0144, allocations: 11.88 kB / 295.1 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001255/0.01453, allocations: 115.9 kB / 295.2 MB, free: 15.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.442e-05/0.01455, allocations: 59.55 kB / 295.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.709e-06/0.01456, allocations: 0 / 295.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.964e-05/0.01459, allocations: 55.38 kB / 295.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01459, allocations: 0 / 295.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of Templates: time 0.003679/0.01827, allocations: 2.732 MB / 298.1 MB, free: 12.88 MB / 298.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6914401687681675]