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.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.001392/0.001392, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 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.001582/0.001582, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 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.513/1.513, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2485/0.2485, allocations: 44.94 MB / 359.6 MB, free: 6.02 MB / 286.1 MB " [Timeout remaining time 179] 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.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.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 71.89 kB / 0.4942 GB, free: 10.02 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.3517, allocations: 65.47 MB / 0.5582 GB, free: 7.469 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001853/0.3536, allocations: 496.9 kB / 0.5586 GB, free: 6.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.3564, allocations: 1.257 MB / 0.5599 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.926e-05/0.3564, allocations: 0 / 0.5599 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.888e-05/0.3565, allocations: 0 / 0.5599 GB, free: 5.719 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.983e-06/0.3565, allocations: 0 / 0.5599 GB, free: 5.719 MB / 398.1 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.001729/0.3582, allocations: 0.5842 MB / 0.5604 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.238e-05/0.3582, allocations: 3.938 kB / 0.5604 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.3583, allocations: 4 kB / 0.5604 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.143e-05/0.3583, allocations: 8 kB / 0.5605 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.382e-05/0.3583, allocations: 0 / 0.5605 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-06/0.3583, allocations: 0 / 0.5605 GB, free: 5.117 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01723/0.3756, allocations: 2.543 MB / 0.5629 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.483e-05/0.3756, allocations: 0 / 0.5629 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.622e-05/0.3756, allocations: 0 / 0.5629 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003995/0.376, allocations: 167.6 kB / 0.5631 GB, free: 2.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.376, allocations: 0 / 0.5631 GB, free: 2.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.376, allocations: 0 / 0.5631 GB, free: 2.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.376, allocations: 0 / 0.5631 GB, free: 2.941 MB / 398.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.0004454/0.3765, allocations: 307.8 kB / 0.5634 GB, free: 2.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3765, allocations: 8.031 kB / 0.5634 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.178e-05/0.3765, allocations: 0.9375 kB / 0.5634 GB, free: 2.598 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.747e-05/0.3766, allocations: 106.5 kB / 0.5635 GB, free: 2.469 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.3766, allocations: 8.312 kB / 0.5635 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.06e-05/0.3767, allocations: 384 / 0.5635 GB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.3768, allocations: 67.45 kB / 0.5636 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.3768, allocations: 0 / 0.5636 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.3768, allocations: 0 / 0.5636 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.3768, allocations: 0 / 0.5636 GB, free: 2.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.119e-05/0.3768, allocations: 37.69 kB / 0.5636 GB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001407/0.377, allocations: 97.33 kB / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.305e-05/0.377, allocations: 44.31 kB / 0.5637 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.285e-05/0.3771, allocations: 34.5 kB / 0.5638 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.3771, allocations: 4 kB / 0.5638 GB, free: 2.109 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/0.3772, allocations: 60.33 kB / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3772, allocations: 0 / 0.5638 GB, free: 2.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002139/0.3774, allocations: 122.7 kB / 0.564 GB, free: 1.891 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/0.3774, allocations: 77.11 kB / 0.564 GB, free: 1.797 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.67e-05/0.3775, allocations: 89.86 kB / 0.5641 GB, free: 1.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.573e-05/0.3775, allocations: 25.7 kB / 0.5641 GB, free: 1.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.813e-05/0.3775, allocations: 80.14 kB / 0.5642 GB, free: 1.586 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.439e-05/0.3776, allocations: 4 kB / 0.5642 GB, free: 1.582 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.776e-05/0.3776, allocations: 17.64 kB / 0.5642 GB, free: 1.559 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3777, allocations: 315 kB / 0.5645 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.557e-05/0.3778, allocations: 33.7 kB / 0.5646 GB, free: 1.203 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.051e-05/0.3778, allocations: 29.64 kB / 0.5646 GB, free: 1.168 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.438e-05/0.3779, allocations: 60.27 kB / 0.5647 GB, free: 1.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.3779, allocations: 0 / 0.5647 GB, free: 1.094 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.669e-05/0.378, allocations: 93.09 kB / 0.5647 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/0.378, allocations: 29.7 kB / 0.5648 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.378, allocations: 3.938 kB / 0.5648 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.378, allocations: 4 kB / 0.5648 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.21e-07/0.378, allocations: 96 / 0.5648 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.378, allocations: 4 kB / 0.5648 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.799e-05/0.378, allocations: 3.953 kB / 0.5648 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.378, allocations: 0 / 0.5648 GB, free: 0.9336 MB / 398.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 0.0001114/0.3782, allocations: 143.5 kB / 0.5649 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-06/0.3782, allocations: 3.938 kB / 0.5649 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.327e-05/0.3782, allocations: 6.938 kB / 0.5649 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3782, allocations: 3.938 kB / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3782, allocations: 0 / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3782, allocations: 0 / 0.5649 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.465e-05/0.3783, allocations: 101.3 kB / 0.565 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.3783, allocations: 4 kB / 0.565 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3783, allocations: 0 / 0.565 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.3783, allocations: 3.984 kB / 0.565 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.3783, allocations: 0 / 0.565 GB, free: 0.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.3783, allocations: 7.938 kB / 0.5651 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.3783, allocations: 0 / 0.5651 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001238/0.3784, allocations: 116.5 kB / 0.5652 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-06/0.3784, allocations: 0 / 0.5652 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.3784, allocations: 0 / 0.5652 GB, free: 484 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3784, allocations: 3.938 kB / 0.5652 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.524e-05/0.3785, allocations: 8.031 kB / 0.5652 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.358e-06/0.3785, allocations: 4 kB / 0.5652 GB, free: 468 kB / 398.1 MB Notification: Performance of sorting global known variables: time 4.498e-05/0.3785, allocations: 75.28 kB / 0.5652 GB, free: 392 kB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3785, allocations: 3.938 kB / 0.5653 GB, free: 388 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.3788, allocations: 71.86 kB / 0.5653 GB, free: 316 kB / 398.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.001117/0.3799, allocations: 425.2 kB / 0.5657 GB, free: 15.97 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000185/0.3801, allocations: 110.8 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.3801, allocations: 4 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.271e-05/0.3802, allocations: 81.11 kB / 0.5659 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3803, allocations: 4 kB / 0.5659 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002849/0.3806, allocations: 136.4 kB / 0.566 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.807e-05/0.3806, allocations: 55.36 kB / 0.5661 GB, free: 15.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.581e-05/0.3806, allocations: 7.438 kB / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3806, allocations: 0 / 0.5661 GB, free: 15.48 MB / 414.1 MB Notification: Performance of Templates: time 0.00414/0.3848, allocations: 2.044 MB / 0.5681 GB, free: 13.44 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 8.042518632020801]