Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json 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/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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 112.8 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 180.1 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 242.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2128/0.2128, allocations: 44.17 MB / 336.7 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.89 kB / 470.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.399/0.4003, allocations: 60.82 MB / 0.5189 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.001949/0.4023, allocations: 491.7 kB / 0.5193 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002757/0.4051, allocations: 1.266 MB / 0.5206 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.617e-05/0.4051, allocations: 1.125 kB / 0.5206 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.906e-05/0.4051, allocations: 0 / 0.5206 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002336/0.4054, allocations: 18.98 kB / 0.5206 GB, free: 2.438 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function 'ModelicaTest.Utilities.Files' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001531/0.407, allocations: 244.5 kB / 0.5208 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.765e-05/0.407, allocations: 12.03 kB / 0.5208 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.693e-05/0.4071, allocations: 1.875 kB / 0.5208 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.748e-05/0.4071, allocations: 1.375 kB / 0.5208 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.4073, allocations: 6.312 kB / 0.5209 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.4073, allocations: 3.984 kB / 0.5209 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005027/0.4123, allocations: 0.6877 MB / 0.5215 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.512e-05/0.4123, allocations: 1.531 kB / 0.5215 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.822e-05/0.4124, allocations: 4.547 kB / 0.5215 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000521/0.4129, allocations: 179.2 kB / 0.5217 GB, free: 2.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4129, allocations: 0 / 0.5217 GB, free: 2.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4129, allocations: 0 / 0.5217 GB, free: 2.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.369e-05/0.413, allocations: 0.6094 kB / 0.5217 GB, free: 2.059 MB / 382.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.0004999/0.4135, allocations: 384.4 kB / 0.5221 GB, free: 1.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.4135, allocations: 12.97 kB / 0.5221 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.4136, allocations: 2.75 kB / 0.5221 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001044/0.4137, allocations: 162.5 kB / 0.5222 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.4137, allocations: 4.312 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.14e-05/0.4137, allocations: 1.438 kB / 0.5222 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.87e-05/0.4138, allocations: 34.17 kB / 0.5223 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4139, allocations: 0.9688 kB / 0.5223 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.4139, allocations: 0 / 0.5223 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.4139, allocations: 1.094 kB / 0.5223 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.441e-05/0.4139, allocations: 5.641 kB / 0.5223 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001249/0.4141, allocations: 150.3 kB / 0.5224 GB, free: 1.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.448e-05/0.4141, allocations: 20.52 kB / 0.5225 GB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.068e-05/0.4141, allocations: 10.47 kB / 0.5225 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.4142, allocations: 0 / 0.5225 GB, free: 1.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/0.4142, allocations: 62.64 kB / 0.5225 GB, free: 1.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.4142, allocations: 1 kB / 0.5225 GB, free: 1.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001916/0.4144, allocations: 70.27 kB / 0.5226 GB, free: 1.039 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.405e-05/0.4145, allocations: 78.94 kB / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.481e-05/0.4145, allocations: 94.08 kB / 0.5228 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.774e-06/0.4146, allocations: 25.7 kB / 0.5228 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.961e-05/0.4146, allocations: 81.91 kB / 0.5229 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.4146, allocations: 3.906 kB / 0.5229 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.801e-05/0.4147, allocations: 16.75 kB / 0.5229 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.841e-05/0.4147, allocations: 320.8 kB / 0.5232 GB, free: 400 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.51e-05/0.4148, allocations: 1.375 kB / 0.5232 GB, free: 400 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.949e-06/0.4148, allocations: 2.188 kB / 0.5232 GB, free: 400 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.122e-05/0.4148, allocations: 60.23 kB / 0.5232 GB, free: 328 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4148, allocations: 0 / 0.5232 GB, free: 328 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.479e-05/0.4149, allocations: 69.44 kB / 0.5233 GB, free: 256 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.415, allocations: 31.78 kB / 0.5233 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.415, allocations: 4.969 kB / 0.5233 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.415, allocations: 4.891 kB / 0.5234 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-06/0.415, allocations: 1.125 kB / 0.5234 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.012e-06/0.415, allocations: 3.984 kB / 0.5234 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.305e-05/0.4151, allocations: 1.031 kB / 0.5234 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.556e-06/0.4151, allocations: 5.719 kB / 0.5234 GB, free: 208 kB / 382.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.244e-05/0.4152, allocations: 134.4 kB / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.4152, allocations: 5.781 kB / 0.5235 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.361e-05/0.4152, allocations: 7.781 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.4152, allocations: 1.312 kB / 0.5235 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4152, allocations: 4 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4153, allocations: 0.7031 kB / 0.5235 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001464/0.4154, allocations: 150.1 kB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.4154, allocations: 0.75 kB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.316e-06/0.4154, allocations: 5 kB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.4154, allocations: 0 / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.4155, allocations: 1.828 kB / 0.5237 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.177e-06/0.4155, allocations: 5.094 kB / 0.5237 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4155, allocations: 3.938 kB / 0.5237 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001271/0.4156, allocations: 93.94 kB / 0.5238 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.935e-05/0.4157, allocations: 86.67 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.4157, allocations: 1.703 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.351e-05/0.4157, allocations: 1.438 kB / 0.5238 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.4158, allocations: 4.641 kB / 0.5238 GB, free: 15.63 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.91e-06/0.4158, allocations: 0.8438 kB / 0.5238 GB, free: 15.63 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.044e-05/0.4158, allocations: 78.17 kB / 0.5239 GB, free: 15.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4158, allocations: 128 / 0.5239 GB, free: 15.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005398/0.4164, allocations: 68.09 kB / 0.524 GB, free: 15.54 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.001014/0.4174, allocations: 339.6 kB / 0.5243 GB, free: 15.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.4175, allocations: 62.73 kB / 0.5244 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.4176, allocations: 0 / 0.5244 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.062e-05/0.4176, allocations: 55.81 kB / 0.5244 GB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.4178, allocations: 5.891 kB / 0.5244 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.4181, allocations: 92.12 kB / 0.5245 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.4185, allocations: 0.6801 MB / 0.5252 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.404e-06/0.4185, allocations: 0 / 0.5252 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.946e-05/0.4185, allocations: 9.594 kB / 0.5252 GB, free: 14.43 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4185, allocations: 3.938 kB / 0.5252 GB, free: 14.42 MB / 398.1 MB Notification: Performance of Templates: time 0.007292/0.4258, allocations: 1.582 MB / 0.5267 GB, free: 14.07 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches