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.001881/0.001881, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002109/0.002109, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.535/1.535, allocations: 230.6 MB / 257.5 MB, free: 7.832 MB / 206.1 MB " [Timeout remaining time 178] 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.2341/0.2341, allocations: 46.97 MB / 360.9 MB, free: 4.07 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+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 0.002198/0.002198, allocations: 63.91 kB / 0.4966 GB, free: 7.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3343, allocations: 66.03 MB / 0.561 GB, free: 4.207 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001529/0.3358, allocations: 487.7 kB / 0.5615 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.3383, allocations: 1.265 MB / 0.5627 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.4e-05/0.3384, allocations: 3.938 kB / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.435e-05/0.3384, allocations: 0 / 0.5628 GB, free: 2.457 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.139e-06/0.3384, allocations: 0 / 0.5628 GB, free: 2.457 MB / 398.1 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.001445/0.3398, allocations: 0.5804 MB / 0.5633 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.397e-05/0.3399, allocations: 0 / 0.5633 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.3399, allocations: 8 kB / 0.5633 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.534e-05/0.3399, allocations: 3.984 kB / 0.5633 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.18e-05/0.3399, allocations: 4 kB / 0.5633 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.239e-06/0.3399, allocations: 0 / 0.5633 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01745/0.3574, allocations: 2.538 MB / 0.5658 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.304e-05/0.3574, allocations: 7.922 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.086e-05/0.3574, allocations: 4 kB / 0.5658 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.3578, allocations: 163.6 kB / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3578, allocations: 0 / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3578, allocations: 0 / 0.566 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.3578, allocations: 0 / 0.566 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.0003842/0.3582, allocations: 311.8 kB / 0.5663 GB, free: 15.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.3583, allocations: 8.031 kB / 0.5663 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.903e-05/0.3583, allocations: 4.938 kB / 0.5663 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.116e-05/0.3584, allocations: 102.5 kB / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.3584, allocations: 384 / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.015e-05/0.3584, allocations: 384 / 0.5664 GB, free: 15.2 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.3585, allocations: 67.52 kB / 0.5665 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.3585, allocations: 0 / 0.5665 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.3585, allocations: 0 / 0.5665 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3585, allocations: 0 / 0.5665 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.455e-05/0.3586, allocations: 37.62 kB / 0.5665 GB, free: 15.08 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001155/0.3587, allocations: 97.33 kB / 0.5666 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.254e-05/0.3587, allocations: 44.31 kB / 0.5666 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.555e-05/0.3588, allocations: 30.56 kB / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.203e-06/0.3588, allocations: 0 / 0.5667 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/0.3588, allocations: 60.33 kB / 0.5667 GB, free: 14.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3588, allocations: 4 kB / 0.5667 GB, free: 14.78 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002206/0.3591, allocations: 126.7 kB / 0.5668 GB, free: 14.63 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.3591, allocations: 77.11 kB / 0.5669 GB, free: 14.54 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.5e-05/0.3592, allocations: 89.86 kB / 0.567 GB, free: 14.44 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.676e-05/0.3592, allocations: 25.7 kB / 0.567 GB, free: 14.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.388e-05/0.3592, allocations: 80.14 kB / 0.5671 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.3593, allocations: 4 kB / 0.5671 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.876e-05/0.3593, allocations: 13.7 kB / 0.5671 GB, free: 14.3 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3594, allocations: 314.8 kB / 0.5674 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.491e-05/0.3595, allocations: 29.7 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.3595, allocations: 33.83 kB / 0.5675 GB, free: 13.91 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.886e-05/0.3595, allocations: 60.27 kB / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3595, allocations: 0 / 0.5675 GB, free: 13.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.329e-05/0.3596, allocations: 97.03 kB / 0.5676 GB, free: 13.73 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.3597, allocations: 33.14 kB / 0.5677 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.3597, allocations: 3.938 kB / 0.5677 GB, free: 13.69 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.3597, allocations: 4 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.82e-07/0.3597, allocations: 0 / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3597, allocations: 7.922 kB / 0.5677 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.565e-05/0.3597, allocations: 8.047 kB / 0.5677 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.3597, allocations: 3.938 kB / 0.5677 GB, free: 13.66 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 9.742e-05/0.3598, allocations: 143.5 kB / 0.5678 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.333e-06/0.3598, allocations: 0 / 0.5678 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.267e-05/0.3598, allocations: 6.938 kB / 0.5678 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3598, allocations: 0 / 0.5678 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3599, allocations: 0 / 0.5678 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.3599, allocations: 4 kB / 0.5678 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.765e-05/0.3599, allocations: 93.33 kB / 0.5679 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.12e-07/0.3599, allocations: 0 / 0.5679 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3599, allocations: 4 kB / 0.5679 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3599, allocations: 3.984 kB / 0.5679 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.3599, allocations: 4 kB / 0.5679 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.36, allocations: 3.938 kB / 0.5679 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.36, allocations: 0 / 0.5679 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001273/0.3601, allocations: 128.5 kB / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-06/0.3601, allocations: 0 / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.098e-05/0.3601, allocations: 0 / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.392e-05/0.3601, allocations: 7.938 kB / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.3601, allocations: 0 / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.595e-06/0.3601, allocations: 0 / 0.5681 GB, free: 13.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.418e-05/0.3602, allocations: 79.31 kB / 0.5681 GB, free: 13.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3602, allocations: 0 / 0.5681 GB, free: 13.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002985/0.3605, allocations: 71.86 kB / 0.5682 GB, free: 13.05 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.001035/0.3615, allocations: 421.5 kB / 0.5686 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001335/0.3616, allocations: 114.8 kB / 0.5687 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.3616, allocations: 4 kB / 0.5687 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.099e-05/0.3617, allocations: 81.05 kB / 0.5688 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001353/0.3618, allocations: 8 kB / 0.5688 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002099/0.362, allocations: 106.7 kB / 0.5689 GB, free: 12.33 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.615e-05/0.3621, allocations: 59.34 kB / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.973e-06/0.3621, allocations: 0 / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.516e-05/0.3621, allocations: 7.438 kB / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3621, allocations: 0 / 0.569 GB, free: 12.25 MB / 414.1 MB Notification: Performance of Templates: time 0.005534/0.3677, allocations: 2.12 MB / 0.571 GB, free: 10.14 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 5.264048017561436]