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.0007278/0.0007278, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001036/0.001763, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.000708/0.000708, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008848/0.001593, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.949/0.949, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08905/1.038, allocations: 53.66 MB / 243.3 MB, free: 15.59 MB / 250.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.2497/0.2497, allocations: 34.25 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02515/0.2748, allocations: 13.1 MB / 291.3 MB, free: 7.371 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.032e-06/1.032e-06, allocations: 0 / 292.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.078e-05/1.181e-05, allocations: 3.891 kB / 292.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0008749/0.0008867, allocations: 0.5345 MB / 293.1 MB, free: 5.797 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.002331, allocations: 1.308 MB / 294.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.468e-06/0.00234, allocations: 0 / 294.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.775e-06/0.002343, allocations: 0 / 294.4 MB, free: 4.48 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.71e-07/0.002344, allocations: 0 / 294.4 MB, free: 4.48 MB / 282.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.0007899/0.003134, allocations: 0.5182 MB / 295 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 4.451e-05/0.003178, allocations: 0.5 kB / 295 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.52e-05/0.003203, allocations: 0 / 295 MB, free: 3.961 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.536e-05/0.003229, allocations: 7.984 kB / 295 MB, free: 3.953 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.984e-05/0.003249, allocations: 3.984 kB / 295 MB, free: 3.949 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-06/0.003255, allocations: 3.938 kB / 295 MB, free: 3.945 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008603/0.01186, allocations: 3.776 MB / 298.8 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.316e-06/0.01187, allocations: 0 / 298.8 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 1.246e-05/0.01188, allocations: 0 / 298.8 MB, free: 1.172 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.01211, allocations: 171.6 kB / 298.9 MB, free: 1.004 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-05/0.01213, allocations: 0 / 298.9 MB, free: 1.004 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.01213, allocations: 0 / 298.9 MB, free: 1.004 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.01214, allocations: 0 / 298.9 MB, free: 1.004 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.0002754/0.01242, allocations: 306.1 kB / 299.2 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.01245, allocations: 12.03 kB / 299.2 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.855e-05/0.01247, allocations: 4.875 kB / 299.2 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.138e-05/0.01253, allocations: 105.8 kB / 299.3 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.01254, allocations: 4.375 kB / 299.3 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.01254, allocations: 384 / 299.3 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.967e-05/0.0126, allocations: 55.95 kB / 299.4 MB, free: 472 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-06/0.01261, allocations: 8.125 kB / 299.4 MB, free: 464 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-06/0.01261, allocations: 4.125 kB / 299.4 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.01262, allocations: 0 / 299.4 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.621e-05/0.01263, allocations: 29.69 kB / 299.4 MB, free: 424 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.059e-05/0.0127, allocations: 65 kB / 299.5 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.465e-05/0.01275, allocations: 52.25 kB / 299.6 MB, free: 276 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.337e-05/0.01276, allocations: 30.56 kB / 299.6 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.156e-06/0.01277, allocations: 0 / 299.6 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.0128, allocations: 68.3 kB / 299.7 MB, free: 152 kB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 6.51e-07/0.0128, allocations: 0 / 299.7 MB, free: 152 kB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.000104/0.0129, allocations: 106.8 kB / 299.8 MB, free: 20 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.01295, allocations: 85.05 kB / 299.8 MB, free: 15.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.852e-05/0.01298, allocations: 93.84 kB / 299.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.885e-06/0.01298, allocations: 25.7 kB / 300 MB, free: 15.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.905e-05/0.013, allocations: 80.14 kB / 300 MB, free: 15.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.01302, allocations: 4.125 kB / 300 MB, free: 15.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.273e-05/0.01304, allocations: 17.72 kB / 300.1 MB, free: 15.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.01311, allocations: 314.8 kB / 300.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.289e-05/0.01313, allocations: 29.7 kB / 300.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.13e-05/0.01314, allocations: 25.7 kB / 300.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.663e-05/0.01317, allocations: 64.25 kB / 300.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.01318, allocations: 0 / 300.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.312e-05/0.01322, allocations: 85.05 kB / 300.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.01325, allocations: 33.7 kB / 300.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.349e-06/0.01325, allocations: 96 / 300.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.01326, allocations: 4 kB / 300.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.372e-06/0.01327, allocations: 3.984 kB / 300.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.527e-06/0.01327, allocations: 0 / 300.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.01329, allocations: 7.938 kB / 300.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.0133, allocations: 0 / 300.6 MB, free: 15.06 MB / 298.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.324e-05/0.01335, allocations: 131.5 kB / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.3e-06/0.01336, allocations: 4 kB / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.552e-06/0.01336, allocations: 3 kB / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.82e-07/0.01337, allocations: 0 / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.01337, allocations: 0 / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-06/0.01337, allocations: 4 kB / 300.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.287e-05/0.01341, allocations: 73.77 kB / 300.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.01e-07/0.01341, allocations: 0 / 300.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.21e-07/0.01341, allocations: 0 / 300.8 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-06/0.01342, allocations: 11.98 kB / 300.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.01342, allocations: 4 kB / 300.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-06/0.01342, allocations: 4 kB / 300.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.2e-07/0.01342, allocations: 0 / 300.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01343, allocations: 0 / 300.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.925e-05/0.01348, allocations: 116.4 kB / 301 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.278e-06/0.01349, allocations: 4.031 kB / 301 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.238e-06/0.0135, allocations: 4 kB / 301 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.935e-06/0.01351, allocations: 0 / 301 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-06/0.01351, allocations: 0 / 301 MB, free: 14.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.18e-06/0.01351, allocations: 4.859 kB / 301 MB, free: 14.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01351, allocations: 0 / 301 MB, free: 14.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001565/0.01367, allocations: 75.8 kB / 301 MB, free: 14.56 MB / 298.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.0007486/0.01442, allocations: 0.5089 MB / 301.5 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.563e-05/0.0145, allocations: 123.6 kB / 301.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.01451, allocations: 0 / 301.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.632e-05/0.01453, allocations: 89.91 kB / 301.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.024e-05/0.01458, allocations: 11.94 kB / 301.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001279/0.01471, allocations: 112.7 kB / 301.9 MB, free: 13.78 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.433e-05/0.01474, allocations: 55.36 kB / 301.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.01474, allocations: 0 / 301.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.031e-05/0.01477, allocations: 51.38 kB / 302 MB, free: 13.66 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.01477, allocations: 0 / 302 MB, free: 13.66 MB / 298.7 MB Notification: Performance of Templates: time 0.003425/0.0182, allocations: 2.537 MB / 304.5 MB, free: 11.12 MB / 298.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 -ignoreHideResult -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: 2.807867741212249]