Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.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.Tables.CombiTimeTable.Test2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2") translateModel(ModelicaTest.Tables.CombiTimeTable.Test2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 226.6 MB / 243.1 MB, free: 12.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007666/0.0007666, allocations: 97.5 kB / 295.1 MB, free: 4.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 44.84 MB / 392 MB, free: 11.32 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002585, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1002, allocations: 62.96 MB / 0.5153 GB, free: 5.094 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test2): time 0.001543/0.1018, allocations: 1.416 MB / 0.5167 GB, free: 3.66 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1028, allocations: 0.9441 MB / 0.5176 GB, free: 2.711 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.047e-05/0.1029, allocations: 3.938 kB / 0.5176 GB, free: 2.707 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.1031, allocations: 35.89 kB / 0.5177 GB, free: 2.672 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.1033, allocations: 67.75 kB / 0.5177 GB, free: 2.605 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.1035, allocations: 95.52 kB / 0.5178 GB, free: 2.516 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001154/0.1037, allocations: 95.69 kB / 0.5179 GB, free: 2.422 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.058e-05/0.1037, allocations: 4 kB / 0.5179 GB, free: 2.418 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.956e-05/0.1038, allocations: 39.78 kB / 0.518 GB, free: 2.379 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.179e-05/0.1039, allocations: 35.84 kB / 0.518 GB, free: 2.344 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.1039, allocations: 0 / 0.518 GB, free: 2.344 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.874e-05/0.1039, allocations: 35.88 kB / 0.518 GB, free: 2.309 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.104, allocations: 23.91 kB / 0.5181 GB, free: 2.285 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.909e-05/0.104, allocations: 37.64 kB / 0.5181 GB, free: 2.242 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001091/0.1041, allocations: 80.09 kB / 0.5182 GB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1041, allocations: 0 / 0.5182 GB, free: 2.164 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1042, allocations: 0 / 0.5182 GB, free: 2.164 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1042, allocations: 4 kB / 0.5182 GB, free: 2.16 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000369/0.1045, allocations: 403 kB / 0.5186 GB, free: 1.719 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.844e-05/0.1046, allocations: 8.031 kB / 0.5186 GB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.1046, allocations: 7.906 kB / 0.5186 GB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.1048, allocations: 206.8 kB / 0.5188 GB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1048, allocations: 0 / 0.5188 GB, free: 1.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.1048, allocations: 7.938 kB / 0.5188 GB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.1049, allocations: 53.67 kB / 0.5188 GB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1049, allocations: 0 / 0.5188 GB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.105, allocations: 0 / 0.5188 GB, free: 1.395 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.105, allocations: 7.984 kB / 0.5188 GB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.156e-05/0.105, allocations: 23.92 kB / 0.5189 GB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00024/0.1053, allocations: 292.8 kB / 0.5191 GB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.1054, allocations: 58.67 kB / 0.5192 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.314e-05/0.1055, allocations: 16.86 kB / 0.5192 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.1055, allocations: 7.984 kB / 0.5192 GB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001261/0.1056, allocations: 67.33 kB / 0.5193 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.1056, allocations: 0 / 0.5193 GB, free: 0.8555 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.000419/0.1061, allocations: 173.2 kB / 0.5194 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.201e-05/0.1061, allocations: 63.39 kB / 0.5195 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001075/0.1062, allocations: 169.5 kB / 0.5197 GB, free: 444 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.896e-06/0.1062, allocations: 29.7 kB / 0.5197 GB, free: 408 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.838e-05/0.1063, allocations: 100.1 kB / 0.5198 GB, free: 304 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.1063, allocations: 23.66 kB / 0.5198 GB, free: 280 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.1063, allocations: 0 / 0.5198 GB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.623e-05/0.1064, allocations: 322.8 kB / 0.5201 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.824e-05/0.1064, allocations: 23.98 kB / 0.5201 GB, free: 15.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.733e-05/0.1065, allocations: 33.7 kB / 0.5202 GB, free: 15.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.569e-05/0.1066, allocations: 24 kB / 0.5202 GB, free: 15.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.1066, allocations: 0 / 0.5202 GB, free: 15.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001709/0.1067, allocations: 101.7 kB / 0.5203 GB, free: 15.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1068, allocations: 7.984 kB / 0.5203 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.1068, allocations: 3.938 kB / 0.5203 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1068, allocations: 0 / 0.5203 GB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.567e-05/0.1069, allocations: 16 kB / 0.5203 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.1069, allocations: 0 / 0.5203 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.35e-05/0.1069, allocations: 7.938 kB / 0.5203 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.906e-06/0.1069, allocations: 11.97 kB / 0.5203 GB, free: 15.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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 8.588e-05/0.107, allocations: 121.8 kB / 0.5205 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.738e-05/0.1071, allocations: 7.906 kB / 0.5205 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.1071, allocations: 16.7 kB / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1071, allocations: 4 kB / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1071, allocations: 3.938 kB / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1071, allocations: 0 / 0.5205 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.1075, allocations: 399.2 kB / 0.5209 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1076, allocations: 0 / 0.5209 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.073e-05/0.1076, allocations: 8 kB / 0.5209 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1076, allocations: 0 / 0.5209 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.1076, allocations: 7.984 kB / 0.5209 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1076, allocations: 384 / 0.5209 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1076, allocations: 3.953 kB / 0.5209 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002021/0.1078, allocations: 212.3 kB / 0.5211 GB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.1079, allocations: 85.02 kB / 0.5212 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.1079, allocations: 11.98 kB / 0.5212 GB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.68e-05/0.108, allocations: 4 kB / 0.5212 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.877e-05/0.108, allocations: 7.953 kB / 0.5212 GB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.1081, allocations: 7.984 kB / 0.5212 GB, free: 14.72 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.274e-05/0.1082, allocations: 128.1 kB / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1082, allocations: 0 / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002268/0.1084, allocations: 20 kB / 0.5213 GB, free: 14.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008728/0.1093, allocations: 459.1 kB / 0.5218 GB, free: 14.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.1094, allocations: 63.91 kB / 0.5218 GB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.1094, allocations: 0 / 0.5218 GB, free: 14.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.428e-05/0.1095, allocations: 31.92 kB / 0.5219 GB, free: 14.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.1098, allocations: 31.34 kB / 0.5219 GB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004003/0.1102, allocations: 248.2 kB / 0.5221 GB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.1105, allocations: 0.7004 MB / 0.5228 GB, free: 13.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.1105, allocations: 19.42 kB / 0.5228 GB, free: 13.13 MB / 362.7 MB Notification: Performance of SimCode: time 2e-07/0.1105, allocations: 0 / 0.5228 GB, free: 13.13 MB / 362.7 MB Notification: Performance of Templates: time 0.003098/0.1136, allocations: 1.895 MB / 0.5247 GB, free: 11.24 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test2/Test2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches