Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001574, allocations: 188.8 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.127/2.127, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001629/0.001628, allocations: 98.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2817/0.2817, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004398/0.0004399, allocations: 8 kB / 431.3 MB, free: 20.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 58.87 MB / 490.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0006493/0.1132, allocations: 216.7 kB / 490.4 MB, free: 9.133 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002526/0.1157, allocations: 1.198 MB / 491.6 MB, free: 7.93 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.731e-05/0.1158, allocations: 0 / 491.6 MB, free: 7.93 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.382e-05/0.1158, allocations: 4 kB / 491.6 MB, free: 7.926 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.116, allocations: 11.92 kB / 491.6 MB, free: 7.914 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007855/0.1168, allocations: 179.5 kB / 491.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 3.157e-05/0.1168, allocations: 0 / 491.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.952e-05/0.1169, allocations: 4 kB / 491.8 MB, free: 7.734 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.036e-05/0.1169, allocations: 3.984 kB / 491.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.117, allocations: 7.984 kB / 491.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-06/0.117, allocations: 0 / 491.8 MB, free: 7.723 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007963/0.1178, allocations: 299.6 kB / 492.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.368e-06/0.1179, allocations: 3.984 kB / 492.1 MB, free: 7.426 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.902e-05/0.1179, allocations: 25.7 kB / 492.2 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.1182, allocations: 119.8 kB / 492.3 MB, free: 7.277 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.1182, allocations: 3.938 kB / 492.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.1182, allocations: 0 / 492.3 MB, free: 7.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.848e-06/0.1182, allocations: 4 kB / 492.3 MB, free: 7.27 MB / 330.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.0004116/0.1187, allocations: 377.1 kB / 492.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1187, allocations: 8.031 kB / 492.7 MB, free: 6.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.471e-05/0.1188, allocations: 0 / 492.7 MB, free: 6.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.1189, allocations: 171 kB / 492.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.017e-05/0.1189, allocations: 0 / 492.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.1189, allocations: 4 kB / 492.8 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.984e-05/0.119, allocations: 25.7 kB / 492.8 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.119, allocations: 4 kB / 492.9 MB, free: 6.594 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.1191, allocations: 4 kB / 492.9 MB, free: 6.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.1191, allocations: 4 kB / 492.9 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.793e-05/0.1191, allocations: 3.938 kB / 492.9 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.1193, allocations: 149.6 kB / 493 MB, free: 6.387 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.1193, allocations: 22.55 kB / 493 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.1194, allocations: 0 / 493 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.834e-05/0.1194, allocations: 64.27 kB / 493.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.463e-06/0.1194, allocations: 3.938 kB / 493.1 MB, free: 6.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002226/0.1197, allocations: 67.45 kB / 493.2 MB, free: 6.195 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.1197, allocations: 77.11 kB / 493.2 MB, free: 6.102 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.081e-05/0.1198, allocations: 97.86 kB / 493.3 MB, free: 5.996 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.1198, allocations: 25.7 kB / 493.4 MB, free: 5.965 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.969e-05/0.1199, allocations: 154.5 kB / 493.5 MB, free: 5.812 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.1199, allocations: 8.141 kB / 493.5 MB, free: 5.805 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.12, allocations: 4 kB / 493.5 MB, free: 5.801 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1201, allocations: 314.8 kB / 493.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.193e-05/0.1201, allocations: 0 / 493.8 MB, free: 5.484 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.639e-06/0.1201, allocations: 4 kB / 493.8 MB, free: 5.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/0.1202, allocations: 25.7 kB / 493.9 MB, free: 5.449 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.471e-06/0.1202, allocations: 3.953 kB / 493.9 MB, free: 5.445 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001027/0.1203, allocations: 63.41 kB / 493.9 MB, free: 5.371 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.1204, allocations: 33.7 kB / 494 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1204, allocations: 8.078 kB / 494 MB, free: 5.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1204, allocations: 3.984 kB / 494 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.586e-06/0.1204, allocations: 4 kB / 494 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1204, allocations: 0 / 494 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.964e-05/0.1204, allocations: 288 / 494 MB, free: 5.316 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.1205, allocations: 4 kB / 494 MB, free: 5.312 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.1206, allocations: 135.5 kB / 494.1 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.176e-05/0.1206, allocations: 7.891 kB / 494.1 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.643e-05/0.1206, allocations: 7.125 kB / 494.1 MB, free: 5.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1206, allocations: 4 kB / 494.1 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1207, allocations: 0 / 494.1 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1207, allocations: 0 / 494.1 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.1208, allocations: 149.6 kB / 494.3 MB, free: 4.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1208, allocations: 4 kB / 494.3 MB, free: 4.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.066e-06/0.1208, allocations: 3.953 kB / 494.3 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1208, allocations: 0 / 494.3 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.739e-06/0.1208, allocations: 4 kB / 494.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1208, allocations: 0 / 494.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1209, allocations: 0 / 494.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001287/0.121, allocations: 94.83 kB / 494.4 MB, free: 4.82 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.4e-05/0.1211, allocations: 77.11 kB / 494.5 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.1211, allocations: 11.89 kB / 494.5 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.547e-05/0.1211, allocations: 7.922 kB / 494.5 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.621e-05/0.1211, allocations: 0 / 494.5 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.1211, allocations: 0 / 494.5 MB, free: 4.707 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.777e-05/0.1212, allocations: 79.28 kB / 494.6 MB, free: 4.629 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1212, allocations: 8.062 kB / 494.6 MB, free: 4.621 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004279/0.1216, allocations: 59.98 kB / 494.6 MB, free: 4.562 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008441/0.1225, allocations: 319.4 kB / 494.9 MB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.1226, allocations: 59.41 kB / 495 MB, free: 4.215 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1227, allocations: 0 / 495 MB, free: 4.215 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.487e-05/0.1227, allocations: 59.41 kB / 495 MB, free: 4.145 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001096/0.1228, allocations: 0 / 495 MB, free: 4.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002191/0.1231, allocations: 108.4 kB / 495.2 MB, free: 4.004 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.1233, allocations: 0.677 MB / 495.8 MB, free: 3.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.428e-05/0.1234, allocations: 7.438 kB / 495.8 MB, free: 3.293 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1234, allocations: 128 / 495.8 MB, free: 3.293 MB / 330.7 MB Notification: Performance of Templates: time 0.00535/0.1287, allocations: 1.791 MB / 497.6 MB, free: 1.5 MB / 330.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches