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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 97.17 kB / 291.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3989/0.3989, allocations: 44.14 MB / 386.1 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001066/0.001066, allocations: 51.92 kB / 457.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4188, allocations: 60.81 MB / 0.5064 GB, free: 38.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.001697/0.4206, allocations: 0.5449 MB / 0.5069 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00232/0.4229, allocations: 1.387 MB / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.27e-05/0.4229, allocations: 0.9375 kB / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.432e-05/0.4229, allocations: 0 / 0.5083 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.423, allocations: 0 / 0.5083 GB, free: 36.96 MB / 378.7 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.001113/0.4241, allocations: 449.6 kB / 0.5087 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.37e-05/0.4241, allocations: 0 / 0.5087 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.138e-05/0.4242, allocations: 2.781 kB / 0.5087 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.627e-05/0.4242, allocations: 3.984 kB / 0.5087 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.127e-05/0.4242, allocations: 4 kB / 0.5087 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.4242, allocations: 0 / 0.5087 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03336/0.4576, allocations: 2.343 MB / 0.511 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.4576, allocations: 3.984 kB / 0.511 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.54e-05/0.4577, allocations: 3.938 kB / 0.511 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003007/0.458, allocations: 153.5 kB / 0.5112 GB, free: 36.08 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.458, allocations: 2.938 kB / 0.5112 GB, free: 36.08 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.458, allocations: 0 / 0.5112 GB, free: 36.08 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.458, allocations: 0 / 0.5112 GB, free: 36.08 MB / 378.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.0003113/0.4583, allocations: 395.8 kB / 0.5115 GB, free: 35.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.4584, allocations: 11.47 kB / 0.5115 GB, free: 35.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.202e-05/0.4584, allocations: 4.875 kB / 0.5115 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.702e-05/0.4585, allocations: 160.4 kB / 0.5117 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.4585, allocations: 384 / 0.5117 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.665e-06/0.4585, allocations: 384 / 0.5117 GB, free: 35.47 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.4586, allocations: 35.7 kB / 0.5117 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.4587, allocations: 0 / 0.5117 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.4587, allocations: 6.781 kB / 0.5117 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4587, allocations: 0 / 0.5117 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.902e-05/0.4587, allocations: 0 / 0.5117 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.256e-05/0.4588, allocations: 155.8 kB / 0.5119 GB, free: 35.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.237e-05/0.4589, allocations: 18.52 kB / 0.5119 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.497e-05/0.4589, allocations: 7.703 kB / 0.5119 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.243e-06/0.4589, allocations: 0 / 0.5119 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.4589, allocations: 64.2 kB / 0.512 GB, free: 35.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.51e-07/0.4589, allocations: 0 / 0.512 GB, free: 35.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001525/0.4591, allocations: 67.08 kB / 0.512 GB, free: 35.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.4591, allocations: 81.05 kB / 0.5121 GB, free: 34.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.48e-05/0.4592, allocations: 92.67 kB / 0.5122 GB, free: 34.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.4592, allocations: 25.7 kB / 0.5122 GB, free: 34.83 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.24e-05/0.4592, allocations: 80.14 kB / 0.5123 GB, free: 34.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-05/0.4592, allocations: 0 / 0.5123 GB, free: 34.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.631e-05/0.4593, allocations: 12.62 kB / 0.5123 GB, free: 34.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.206e-05/0.4593, allocations: 322 kB / 0.5126 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.867e-06/0.4593, allocations: 3.938 kB / 0.5126 GB, free: 34.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.4594, allocations: 2.875 kB / 0.5126 GB, free: 34.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.4594, allocations: 58.98 kB / 0.5127 GB, free: 34.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.4594, allocations: 3.938 kB / 0.5127 GB, free: 34.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.155e-05/0.4595, allocations: 60.55 kB / 0.5128 GB, free: 34.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.4595, allocations: 35.27 kB / 0.5128 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4595, allocations: 7.094 kB / 0.5128 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.005e-05/0.4595, allocations: 3.938 kB / 0.5128 GB, free: 34.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.422e-06/0.4595, allocations: 3.984 kB / 0.5128 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.4595, allocations: 0 / 0.5128 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.525e-05/0.4596, allocations: 4 kB / 0.5128 GB, free: 34.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.4596, allocations: 2.812 kB / 0.5128 GB, free: 34.22 MB / 378.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.065e-05/0.4596, allocations: 138.8 kB / 0.5129 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.428e-06/0.4596, allocations: 6.75 kB / 0.5129 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.112e-05/0.4597, allocations: 6.719 kB / 0.513 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.4597, allocations: 4 kB / 0.513 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4597, allocations: 0 / 0.513 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.4597, allocations: 0 / 0.513 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.453e-05/0.4597, allocations: 151.8 kB / 0.5131 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.4597, allocations: 0 / 0.5131 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.4597, allocations: 0 / 0.5131 GB, free: 33.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.4598, allocations: 3.938 kB / 0.5131 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.4598, allocations: 2.812 kB / 0.5131 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4598, allocations: 0 / 0.5131 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4598, allocations: 0 / 0.5131 GB, free: 33.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002005/0.46, allocations: 0.6383 MB / 0.5137 GB, free: 33.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.669e-05/0.46, allocations: 77.11 kB / 0.5138 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.46, allocations: 3 kB / 0.5138 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.46, allocations: 0 / 0.5138 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.565e-05/0.4601, allocations: 0 / 0.5138 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.4601, allocations: 6.344 kB / 0.5138 GB, free: 33.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.333e-05/0.4601, allocations: 83.31 kB / 0.5139 GB, free: 33 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4601, allocations: 0 / 0.5139 GB, free: 33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004493/0.4605, allocations: 69.03 kB / 0.514 GB, free: 32.99 MB / 378.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.0007469/0.4613, allocations: 406 kB / 0.5143 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.549e-05/0.4614, allocations: 68.34 kB / 0.5144 GB, free: 32.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4614, allocations: 0 / 0.5144 GB, free: 32.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.892e-05/0.4614, allocations: 56.25 kB / 0.5145 GB, free: 32.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.4616, allocations: 3.125 kB / 0.5145 GB, free: 32.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001782/0.4617, allocations: 184.2 kB / 0.5146 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.657e-05/0.4618, allocations: 0.6718 MB / 0.5153 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.04e-06/0.4618, allocations: 0 / 0.5153 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.205e-06/0.4619, allocations: 10.22 kB / 0.5153 GB, free: 31.78 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.4619, allocations: 4 kB / 0.5153 GB, free: 31.77 MB / 378.7 MB Notification: Performance of Templates: time 0.00445/0.4663, allocations: 2.134 MB / 0.5174 GB, free: 31.56 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches