Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.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.Test1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1") translateModel(ModelicaTest.Tables.CombiTimeTable.Test1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000999/0.000999, allocations: 199.9 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 226.5 MB / 243.4 MB, free: 6.441 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006583/0.0006584, allocations: 107.2 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3215/0.3215, allocations: 44.82 MB / 392.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004255, allocations: 15.98 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4731/0.4735, allocations: 62.95 MB / 0.5159 GB, free: 37.32 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test1): time 0.002042/0.4756, allocations: 1.425 MB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.477, allocations: 0.9561 MB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.886e-05/0.4771, allocations: 0 / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.4774, allocations: 53.39 kB / 0.5183 GB, free: 35.6 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002335/0.4776, allocations: 84.75 kB / 0.5183 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.4779, allocations: 89.58 kB / 0.5184 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.478, allocations: 97.19 kB / 0.5185 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.21e-05/0.4781, allocations: 6.453 kB / 0.5185 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.4782, allocations: 46.42 kB / 0.5186 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.4783, allocations: 37.58 kB / 0.5186 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.4783, allocations: 4 kB / 0.5186 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.683e-05/0.4784, allocations: 34.31 kB / 0.5186 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.786e-05/0.4785, allocations: 30.28 kB / 0.5187 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.919e-05/0.4786, allocations: 65.55 kB / 0.5187 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.4787, allocations: 100.4 kB / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.4787, allocations: 0 / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4787, allocations: 2.594 kB / 0.5188 GB, free: 35.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.4787, allocations: 0 / 0.5188 GB, free: 35.32 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004524/0.4792, allocations: 420.4 kB / 0.5192 GB, free: 34.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.4792, allocations: 15.84 kB / 0.5192 GB, free: 34.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.499e-05/0.4793, allocations: 14.69 kB / 0.5193 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000194/0.4795, allocations: 225.9 kB / 0.5195 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.373e-05/0.4795, allocations: 3.703 kB / 0.5195 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.4795, allocations: 7.094 kB / 0.5195 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.4797, allocations: 56.22 kB / 0.5195 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.4797, allocations: 0 / 0.5195 GB, free: 34.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.4797, allocations: 6.969 kB / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.4797, allocations: 0 / 0.5195 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.337e-05/0.4798, allocations: 20.33 kB / 0.5196 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002978/0.4801, allocations: 299.4 kB / 0.5198 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.4802, allocations: 55.86 kB / 0.5199 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.622e-05/0.4803, allocations: 21.14 kB / 0.5199 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.4803, allocations: 10.95 kB / 0.5199 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001515/0.4805, allocations: 69.64 kB / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.362e-06/0.4805, allocations: 0 / 0.52 GB, free: 34.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.000477/0.481, allocations: 180.8 kB / 0.5202 GB, free: 34.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.481, allocations: 62 kB / 0.5202 GB, free: 34.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.4812, allocations: 269 kB / 0.5205 GB, free: 33.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.4812, allocations: 25.7 kB / 0.5205 GB, free: 33.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.811e-05/0.4813, allocations: 116.5 kB / 0.5206 GB, free: 33.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.279e-05/0.4813, allocations: 25.66 kB / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-06/0.4813, allocations: 0 / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.55e-05/0.4814, allocations: 335.1 kB / 0.521 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.912e-05/0.4814, allocations: 20.09 kB / 0.521 GB, free: 33.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.317e-05/0.4815, allocations: 39.66 kB / 0.521 GB, free: 33.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.243e-05/0.4816, allocations: 56.05 kB / 0.5211 GB, free: 33.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/0.4816, allocations: 6.844 kB / 0.5211 GB, free: 33.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001494/0.4818, allocations: 104.8 kB / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.4818, allocations: 8.469 kB / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.4818, allocations: 0 / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.4818, allocations: 2.906 kB / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.862e-05/0.4819, allocations: 19.77 kB / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.4819, allocations: 0 / 0.5212 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.601e-05/0.482, allocations: 7.906 kB / 0.5212 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.482, allocations: 6.875 kB / 0.5212 GB, free: 33.26 MB / 378.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 0.0001002/0.4821, allocations: 133.7 kB / 0.5214 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/0.4821, allocations: 13.59 kB / 0.5214 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.865e-05/0.4822, allocations: 25.95 kB / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.4822, allocations: 0 / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4822, allocations: 0 / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4822, allocations: 3.938 kB / 0.5214 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004091/0.4826, allocations: 412.5 kB / 0.5218 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.4827, allocations: 6.812 kB / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.4827, allocations: 9.562 kB / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4827, allocations: 3.031 kB / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.4827, allocations: 7.938 kB / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4827, allocations: 0 / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.4827, allocations: 2.812 kB / 0.5218 GB, free: 32.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002002/0.4829, allocations: 214.9 kB / 0.522 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.483, allocations: 87.92 kB / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.483, allocations: 6.656 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.989e-05/0.4831, allocations: 9.891 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.4831, allocations: 2.781 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.4832, allocations: 8.641 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001605/0.4833, allocations: 196.5 kB / 0.5223 GB, free: 32.36 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4833, allocations: 0 / 0.5223 GB, free: 32.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002438/0.4836, allocations: 29.62 kB / 0.5223 GB, free: 32.35 MB / 378.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.00104/0.4846, allocations: 471.4 kB / 0.5228 GB, free: 32.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.4848, allocations: 55.22 kB / 0.5229 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4848, allocations: 0 / 0.5229 GB, free: 32.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.694e-05/0.4849, allocations: 33.66 kB / 0.5229 GB, free: 32.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.4852, allocations: 28.98 kB / 0.5229 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005269/0.4858, allocations: 331.6 kB / 0.5232 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.486, allocations: 0.7186 MB / 0.5239 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.802e-05/0.486, allocations: 16.25 kB / 0.5239 GB, free: 31.13 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4861, allocations: 7.938 kB / 0.524 GB, free: 31.12 MB / 378.7 MB Notification: Performance of Templates: time 0.003387/0.4894, allocations: 2.083 MB / 0.526 GB, free: 30.89 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test1/Test1.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches