Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009325/0.0009326, allocations: 198.8 kB / 15.8 MB, free: 6.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 243.1 MB, free: 12.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007359/0.0007359, allocations: 102.6 kB / 295.1 MB, free: 4.367 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.197/0.197, allocations: 44.84 MB / 392 MB, free: 11.38 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003233, allocations: 8 kB / 464.7 MB, free: 68.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1034, allocations: 62.96 MB / 0.5153 GB, free: 5.125 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0004599/0.1039, allocations: 208.6 kB / 0.5155 GB, free: 4.918 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.000399/0.1043, allocations: 233 kB / 0.5157 GB, free: 4.691 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.49e-05/0.1044, allocations: 0 / 0.5157 GB, free: 4.691 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.686e-06/0.1044, allocations: 0 / 0.5157 GB, free: 4.691 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.691e-06/0.1044, allocations: 3.938 kB / 0.5157 GB, free: 4.688 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.1046, allocations: 39.89 kB / 0.5158 GB, free: 4.648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.725e-05/0.1047, allocations: 0 / 0.5158 GB, free: 4.648 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.272e-05/0.1047, allocations: 7.984 kB / 0.5158 GB, free: 4.641 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.383e-05/0.1047, allocations: 0 / 0.5158 GB, free: 4.641 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.27e-05/0.1048, allocations: 4 kB / 0.5158 GB, free: 4.637 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.985e-06/0.1048, allocations: 3.938 kB / 0.5158 GB, free: 4.633 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.1049, allocations: 59.95 kB / 0.5159 GB, free: 4.574 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.463e-06/0.1049, allocations: 0 / 0.5159 GB, free: 4.574 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.109e-05/0.1049, allocations: 25.7 kB / 0.5159 GB, free: 4.543 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 7.484e-05/0.105, allocations: 31.95 kB / 0.5159 GB, free: 4.512 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.105, allocations: 4 kB / 0.5159 GB, free: 4.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.105, allocations: 3.938 kB / 0.5159 GB, free: 4.504 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.105, allocations: 0 / 0.5159 GB, free: 4.504 MB / 346.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.0001928/0.1052, allocations: 349.1 kB / 0.5162 GB, free: 4.109 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.1053, allocations: 12.03 kB / 0.5163 GB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.353e-05/0.1053, allocations: 4 kB / 0.5163 GB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.586e-05/0.1054, allocations: 163 kB / 0.5164 GB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.1054, allocations: 0 / 0.5164 GB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.1054, allocations: 3.984 kB / 0.5164 GB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.255e-05/0.1055, allocations: 33.69 kB / 0.5165 GB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.171e-06/0.1055, allocations: 0 / 0.5165 GB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.352e-06/0.1055, allocations: 3.938 kB / 0.5165 GB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1055, allocations: 0 / 0.5165 GB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.304e-05/0.1055, allocations: 8 kB / 0.5165 GB, free: 3.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.363e-05/0.1056, allocations: 149.6 kB / 0.5166 GB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.91e-05/0.1056, allocations: 18.52 kB / 0.5166 GB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.029e-05/0.1056, allocations: 8.844 kB / 0.5166 GB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.843e-06/0.1057, allocations: 4.094 kB / 0.5166 GB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.1057, allocations: 56.27 kB / 0.5167 GB, free: 3.531 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.1057, allocations: 0 / 0.5167 GB, free: 3.531 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001174/0.1058, allocations: 71.34 kB / 0.5168 GB, free: 3.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/0.1058, allocations: 81.09 kB / 0.5168 GB, free: 3.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.713e-05/0.1059, allocations: 89.86 kB / 0.5169 GB, free: 3.254 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.31e-06/0.1059, allocations: 25.7 kB / 0.5169 GB, free: 3.223 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.777e-06/0.1059, allocations: 80.14 kB / 0.517 GB, free: 3.141 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.122e-05/0.1059, allocations: 0 / 0.517 GB, free: 3.141 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.1059, allocations: 4 kB / 0.517 GB, free: 3.137 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.868e-05/0.106, allocations: 314.8 kB / 0.5173 GB, free: 2.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-06/0.106, allocations: 8.062 kB / 0.5173 GB, free: 2.812 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.429e-06/0.106, allocations: 0 / 0.5173 GB, free: 2.812 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.267e-05/0.106, allocations: 29.7 kB / 0.5174 GB, free: 2.777 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.106, allocations: 0 / 0.5174 GB, free: 2.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.499e-05/0.1061, allocations: 63.34 kB / 0.5174 GB, free: 2.703 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.1061, allocations: 33.7 kB / 0.5175 GB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.1061, allocations: 0 / 0.5175 GB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.415e-06/0.1061, allocations: 0 / 0.5175 GB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-06/0.1061, allocations: 3.938 kB / 0.5175 GB, free: 2.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.1061, allocations: 4.094 kB / 0.5175 GB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.1061, allocations: 0 / 0.5175 GB, free: 2.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.1061, allocations: 4 kB / 0.5175 GB, free: 2.652 MB / 346.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 4.603e-05/0.1062, allocations: 139.5 kB / 0.5176 GB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-06/0.1062, allocations: 3.953 kB / 0.5176 GB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-06/0.1062, allocations: 15.06 kB / 0.5176 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1062, allocations: 0 / 0.5176 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.1062, allocations: 0 / 0.5176 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.834e-06/0.1062, allocations: 0 / 0.5176 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.414e-05/0.1063, allocations: 145.7 kB / 0.5178 GB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.1063, allocations: 3.938 kB / 0.5178 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1063, allocations: 0 / 0.5178 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1063, allocations: 7.953 kB / 0.5178 GB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.552e-06/0.1063, allocations: 3.984 kB / 0.5178 GB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.01e-07/0.1063, allocations: 0 / 0.5178 GB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1063, allocations: 0 / 0.5178 GB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.884e-05/0.1064, allocations: 86.84 kB / 0.5179 GB, free: 2.168 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.472e-05/0.1064, allocations: 89.12 kB / 0.5179 GB, free: 2.062 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.112e-05/0.1064, allocations: 7.891 kB / 0.5179 GB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.676e-06/0.1064, allocations: 0 / 0.5179 GB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.296e-05/0.1065, allocations: 0 / 0.5179 GB, free: 2.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-06/0.1065, allocations: 4 kB / 0.518 GB, free: 2.051 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.868e-06/0.1065, allocations: 75.28 kB / 0.518 GB, free: 1.977 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1065, allocations: 0 / 0.518 GB, free: 1.977 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002083/0.1067, allocations: 24 kB / 0.518 GB, free: 1.953 MB / 346.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.0003982/0.1071, allocations: 278.4 kB / 0.5183 GB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.361e-05/0.1072, allocations: 67.39 kB / 0.5184 GB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.1072, allocations: 0 / 0.5184 GB, free: 1.652 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.598e-05/0.1072, allocations: 55.41 kB / 0.5184 GB, free: 1.586 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001209/0.1073, allocations: 0 / 0.5184 GB, free: 1.586 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001344/0.1075, allocations: 108.3 kB / 0.5185 GB, free: 1.445 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.245e-05/0.1076, allocations: 0.6731 MB / 0.5192 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.092e-06/0.1076, allocations: 7.438 kB / 0.5192 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1076, allocations: 128 / 0.5192 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of Templates: time 0.001853/0.1094, allocations: 0.9716 MB / 0.5201 GB, free: 15.77 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches