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.001675/0.001675, allocations: 112.5 kB / 21.19 MB, free: 0.7617 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.002108/0.002108, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.581/1.581, allocations: 230.6 MB / 258.2 MB, free: 7.98 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.2288/0.2288, allocations: 44.91 MB / 359.6 MB, free: 6.273 MB / 286.1 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.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.003162/0.003162, allocations: 75.88 kB / 0.4943 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3206, allocations: 65.46 MB / 0.5582 GB, free: 7.688 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001692/0.3223, allocations: 487.2 kB / 0.5587 GB, free: 7.254 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002546/0.3249, allocations: 1.335 MB / 0.56 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.447e-05/0.3249, allocations: 4 kB / 0.56 GB, free: 5.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.3249, allocations: 0 / 0.56 GB, free: 5.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.34e-06/0.3249, allocations: 0 / 0.56 GB, free: 5.91 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.001475/0.3264, allocations: 0.5804 MB / 0.5606 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.516e-05/0.3264, allocations: 0 / 0.5606 GB, free: 5.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.532e-05/0.3265, allocations: 8 kB / 0.5606 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.641e-05/0.3265, allocations: 0 / 0.5606 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.725e-05/0.3265, allocations: 0 / 0.5606 GB, free: 5.32 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-06/0.3265, allocations: 7.938 kB / 0.5606 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0167/0.3432, allocations: 2.555 MB / 0.5631 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.152e-05/0.3432, allocations: 0 / 0.5631 GB, free: 3.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.411e-05/0.3433, allocations: 3.938 kB / 0.5631 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003925/0.3436, allocations: 167.6 kB / 0.5632 GB, free: 3.121 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3437, allocations: 0 / 0.5632 GB, free: 3.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3437, allocations: 0 / 0.5632 GB, free: 3.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.3437, allocations: 4 kB / 0.5632 GB, free: 3.117 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.0004031/0.3441, allocations: 299.9 kB / 0.5635 GB, free: 2.789 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3441, allocations: 8.031 kB / 0.5635 GB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.3441, allocations: 4.938 kB / 0.5635 GB, free: 2.777 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.823e-05/0.3442, allocations: 110.5 kB / 0.5636 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.3442, allocations: 384 / 0.5636 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.153e-05/0.3442, allocations: 384 / 0.5636 GB, free: 2.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.463e-05/0.3443, allocations: 33.83 kB / 0.5637 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.3443, allocations: 0 / 0.5637 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-06/0.3444, allocations: 0 / 0.5637 GB, free: 2.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3444, allocations: 4 kB / 0.5637 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.115e-05/0.3444, allocations: 7.938 kB / 0.5637 GB, free: 2.594 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.3445, allocations: 112.8 kB / 0.5638 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.436e-05/0.3446, allocations: 26.5 kB / 0.5638 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.3446, allocations: 8.953 kB / 0.5638 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.3446, allocations: 0 / 0.5638 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/0.3446, allocations: 60.2 kB / 0.5639 GB, free: 2.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.32e-07/0.3446, allocations: 4 kB / 0.5639 GB, free: 2.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001737/0.3448, allocations: 67.33 kB / 0.564 GB, free: 2.238 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.763e-05/0.3449, allocations: 77.11 kB / 0.564 GB, free: 2.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.947e-05/0.3449, allocations: 93.86 kB / 0.5641 GB, free: 2.043 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.3449, allocations: 25.7 kB / 0.5641 GB, free: 2.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.134e-05/0.345, allocations: 84.14 kB / 0.5642 GB, free: 1.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.345, allocations: 0 / 0.5642 GB, free: 1.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.723e-05/0.345, allocations: 9.719 kB / 0.5642 GB, free: 1.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3452, allocations: 315 kB / 0.5645 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.308e-05/0.3452, allocations: 4 kB / 0.5645 GB, free: 1.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.57e-06/0.3452, allocations: 0 / 0.5645 GB, free: 1.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.155e-05/0.3452, allocations: 68.25 kB / 0.5646 GB, free: 1.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3452, allocations: 4 kB / 0.5646 GB, free: 1.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.093e-05/0.3453, allocations: 63.34 kB / 0.5647 GB, free: 1.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.3454, allocations: 40.23 kB / 0.5647 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.3454, allocations: 0 / 0.5647 GB, free: 1.387 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.3454, allocations: 4.094 kB / 0.5647 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3454, allocations: 0 / 0.5647 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.3454, allocations: 0 / 0.5647 GB, free: 1.383 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.991e-05/0.3454, allocations: 7.953 kB / 0.5647 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-06/0.3454, allocations: 0 / 0.5647 GB, free: 1.375 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 9.681e-05/0.3455, allocations: 143.4 kB / 0.5649 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.296e-05/0.3455, allocations: 7.938 kB / 0.5649 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.364e-05/0.3455, allocations: 7 kB / 0.5649 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.3455, allocations: 0 / 0.5649 GB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3455, allocations: 4 kB / 0.5649 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.3455, allocations: 3.984 kB / 0.5649 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.532e-05/0.3456, allocations: 120.8 kB / 0.565 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3456, allocations: 0 / 0.565 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3456, allocations: 0 / 0.565 GB, free: 1.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.3456, allocations: 3.938 kB / 0.565 GB, free: 1.031 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3457, allocations: 3.984 kB / 0.565 GB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.3457, allocations: 3.938 kB / 0.565 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3457, allocations: 0 / 0.565 GB, free: 1.023 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.3458, allocations: 98.77 kB / 0.5651 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-06/0.3458, allocations: 3.938 kB / 0.5651 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.3458, allocations: 4 kB / 0.5651 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.378e-06/0.3458, allocations: 0 / 0.5651 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.268e-05/0.3458, allocations: 0 / 0.5651 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.485e-06/0.3458, allocations: 0 / 0.5651 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.164e-05/0.3458, allocations: 75.28 kB / 0.5652 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3458, allocations: 0 / 0.5652 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003137/0.3462, allocations: 71.86 kB / 0.5652 GB, free: 0.75 MB / 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.001024/0.3472, allocations: 405.7 kB / 0.5656 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.3473, allocations: 63.39 kB / 0.5657 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3473, allocations: 3.938 kB / 0.5657 GB, free: 348 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.235e-05/0.3473, allocations: 63.41 kB / 0.5658 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.3475, allocations: 0 / 0.5658 GB, free: 272 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001996/0.3477, allocations: 106.7 kB / 0.5659 GB, free: 132 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003126/0.348, allocations: 0.6729 MB / 0.5665 GB, free: 15.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.062e-05/0.348, allocations: 11.44 kB / 0.5665 GB, free: 15.42 MB / 414.1 MB Notification: Performance of SimCode: time 4.41e-07/0.348, allocations: 0 / 0.5665 GB, free: 15.42 MB / 414.1 MB Notification: Performance of Templates: time 0.004334/0.3523, allocations: 2.025 MB / 0.5685 GB, free: 13.39 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: 7.823618101887405]