Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001274/0.001274, allocations: 117 kB / 21.85 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001449/0.001449, allocations: 213.1 kB / 25.13 MB, free: 3.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.4 MB / 258.7 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2336/0.2336, allocations: 46.93 MB / 362 MB, free: 4.246 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 79.86 kB / 0.4978 GB, free: 7.422 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3214/0.3237, allocations: 66.08 MB / 0.5623 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.002637/0.3263, allocations: 485 kB / 0.5628 GB, free: 3.809 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004528/0.3308, allocations: 1.331 MB / 0.5641 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.021e-05/0.3308, allocations: 0 / 0.5641 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.389e-05/0.3309, allocations: 0 / 0.5641 GB, free: 2.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.644e-06/0.3309, allocations: 0 / 0.5641 GB, free: 2.477 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.002518/0.3334, allocations: 0.5804 MB / 0.5646 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.759e-05/0.3335, allocations: 0 / 0.5646 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.104e-05/0.3335, allocations: 11.94 kB / 0.5646 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.741e-05/0.3335, allocations: 3.984 kB / 0.5647 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.674e-05/0.3336, allocations: 0 / 0.5647 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.3336, allocations: 0 / 0.5647 GB, free: 1.879 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0182/0.3518, allocations: 2.549 MB / 0.5671 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.136e-05/0.3518, allocations: 3.984 kB / 0.5671 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.982e-05/0.3518, allocations: 4 kB / 0.5672 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.3521, allocations: 163.6 kB / 0.5673 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.3521, allocations: 0 / 0.5673 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3521, allocations: 0 / 0.5673 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.519e-06/0.3521, allocations: 0 / 0.5673 GB, free: 15.68 MB / 414.1 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.0003469/0.3525, allocations: 299.9 kB / 0.5676 GB, free: 15.35 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.3525, allocations: 8.031 kB / 0.5676 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.748e-05/0.3526, allocations: 4.938 kB / 0.5676 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.992e-05/0.3526, allocations: 102.5 kB / 0.5677 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.3526, allocations: 4.312 kB / 0.5677 GB, free: 15.21 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.3527, allocations: 8.375 kB / 0.5677 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.742e-05/0.3528, allocations: 59.95 kB / 0.5678 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.3528, allocations: 192 / 0.5678 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.258e-06/0.3528, allocations: 3.938 kB / 0.5678 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.3528, allocations: 0 / 0.5678 GB, free: 15.13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.319e-05/0.3528, allocations: 33.64 kB / 0.5678 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001188/0.3529, allocations: 116.8 kB / 0.5679 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.322e-05/0.353, allocations: 52.3 kB / 0.568 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.839e-05/0.353, allocations: 34.56 kB / 0.568 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.353, allocations: 0 / 0.568 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.915e-05/0.3531, allocations: 56.27 kB / 0.5681 GB, free: 14.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.3531, allocations: 0 / 0.5681 GB, free: 14.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001952/0.3533, allocations: 126.7 kB / 0.5682 GB, free: 14.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.3533, allocations: 81.11 kB / 0.5683 GB, free: 14.51 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.02e-05/0.3534, allocations: 89.86 kB / 0.5683 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.3534, allocations: 29.83 kB / 0.5684 GB, free: 14.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.157e-05/0.3534, allocations: 80.14 kB / 0.5684 GB, free: 14.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.277e-05/0.3534, allocations: 0 / 0.5684 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.811e-05/0.3535, allocations: 13.72 kB / 0.5685 GB, free: 14.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.3536, allocations: 310.8 kB / 0.5688 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.823e-05/0.3536, allocations: 29.7 kB / 0.5688 GB, free: 13.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.222e-05/0.3536, allocations: 33.69 kB / 0.5688 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.3537, allocations: 64.27 kB / 0.5689 GB, free: 13.81 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.3537, allocations: 0 / 0.5689 GB, free: 13.81 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.868e-05/0.3538, allocations: 93.05 kB / 0.569 GB, free: 13.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.082e-05/0.3538, allocations: 37.69 kB / 0.569 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-06/0.3538, allocations: 0 / 0.569 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.3538, allocations: 3.938 kB / 0.569 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.3538, allocations: 0 / 0.569 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.416e-06/0.3538, allocations: 0 / 0.569 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.3539, allocations: 3.953 kB / 0.569 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.3539, allocations: 4 kB / 0.569 GB, free: 13.64 MB / 414.1 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 8.172e-05/0.3539, allocations: 140.4 kB / 0.5691 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.923e-06/0.354, allocations: 0 / 0.5691 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.409e-05/0.354, allocations: 10.94 kB / 0.5692 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.354, allocations: 7.938 kB / 0.5692 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.354, allocations: 3.984 kB / 0.5692 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-06/0.354, allocations: 0 / 0.5692 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.447e-05/0.3541, allocations: 112.8 kB / 0.5693 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.3541, allocations: 0 / 0.5693 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3541, allocations: 0 / 0.5693 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3541, allocations: 4 kB / 0.5693 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.3541, allocations: 7.938 kB / 0.5693 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.11e-07/0.3541, allocations: 0 / 0.5693 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3541, allocations: 0 / 0.5693 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.3542, allocations: 124.5 kB / 0.5694 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-06/0.3542, allocations: 0 / 0.5694 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.3542, allocations: 7.922 kB / 0.5694 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.888e-06/0.3542, allocations: 4 kB / 0.5694 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.169e-05/0.3542, allocations: 4.031 kB / 0.5694 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.3542, allocations: 3.984 kB / 0.5694 GB, free: 13.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.402e-05/0.3543, allocations: 75.28 kB / 0.5695 GB, free: 13.06 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3543, allocations: 0 / 0.5695 GB, free: 13.06 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.3546, allocations: 71.86 kB / 0.5696 GB, free: 12.99 MB / 414.1 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.0009062/0.3555, allocations: 403.8 kB / 0.5699 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.3556, allocations: 110.8 kB / 0.5701 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.3556, allocations: 0 / 0.5701 GB, free: 12.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.288e-05/0.3556, allocations: 89.03 kB / 0.5701 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.3557, allocations: 0 / 0.5701 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001904/0.3559, allocations: 110.7 kB / 0.5702 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.3562, allocations: 0.669 MB / 0.5709 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.923e-06/0.3562, allocations: 12.11 kB / 0.5709 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.3562, allocations: 7.438 kB / 0.5709 GB, free: 11.55 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3562, allocations: 0 / 0.5709 GB, free: 11.55 MB / 414.1 MB Notification: Performance of Templates: time 0.00492/0.3612, allocations: 2.132 MB / 0.573 GB, free: 9.426 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 5.090119916014373]