Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.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.Test81,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new_2.y.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81") translateModel(ModelicaTest.Tables.CombiTimeTable.Test81,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|t_new_2.y.1.",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 198.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 226.6 MB / 243.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008636/0.0008638, allocations: 92.27 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3205/0.3205, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 16 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3718, allocations: 62.96 MB / 0.5159 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test81): time 0.001866/0.3738, allocations: 1.51 MB / 0.5174 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.3757, allocations: 1.624 MB / 0.5189 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.494e-05/0.3758, allocations: 2.781 kB / 0.5189 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.3761, allocations: 46.67 kB / 0.519 GB, free: 34.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002896/0.3764, allocations: 106.1 kB / 0.5191 GB, free: 34.7 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003177/0.3768, allocations: 153.6 kB / 0.5192 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002011/0.377, allocations: 172.6 kB / 0.5194 GB, free: 34.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.675e-05/0.377, allocations: 14.06 kB / 0.5194 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.3772, allocations: 87.33 kB / 0.5195 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001748/0.3773, allocations: 72 kB / 0.5196 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.325e-05/0.3774, allocations: 5.875 kB / 0.5196 GB, free: 34.47 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.3775, allocations: 90.52 kB / 0.5197 GB, free: 34.45 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.144e-05/0.3776, allocations: 34.94 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.307e-05/0.3777, allocations: 82.77 kB / 0.5198 GB, free: 34.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.3779, allocations: 165.3 kB / 0.5199 GB, free: 34.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3779, allocations: 0 / 0.5199 GB, free: 34.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3779, allocations: 0 / 0.5199 GB, free: 34.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.658e-06/0.3779, allocations: 6.938 kB / 0.5199 GB, free: 34.3 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005544/0.3785, allocations: 466.4 kB / 0.5204 GB, free: 33.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.3785, allocations: 11.47 kB / 0.5204 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.117e-05/0.3786, allocations: 22.62 kB / 0.5204 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002898/0.3789, allocations: 244.7 kB / 0.5206 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3789, allocations: 6.688 kB / 0.5207 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.3789, allocations: 11.19 kB / 0.5207 GB, free: 33.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001939/0.3791, allocations: 100.9 kB / 0.5208 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3792, allocations: 0 / 0.5208 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3792, allocations: 0 / 0.5208 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3792, allocations: 2.625 kB / 0.5208 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.593e-05/0.3793, allocations: 33.83 kB / 0.5208 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001935/0.3795, allocations: 225.5 kB / 0.521 GB, free: 33.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.3797, allocations: 107.8 kB / 0.5211 GB, free: 33.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.761e-05/0.3798, allocations: 39.39 kB / 0.5212 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.3798, allocations: 6.5 kB / 0.5212 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002107/0.3801, allocations: 111.5 kB / 0.5213 GB, free: 33.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.3801, allocations: 0 / 0.5213 GB, free: 33.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004009/0.3805, allocations: 167.1 kB / 0.5214 GB, free: 33.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.106e-05/0.3805, allocations: 135.2 kB / 0.5216 GB, free: 32.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.3808, allocations: 233.9 kB / 0.5218 GB, free: 32.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.3808, allocations: 32.7 kB / 0.5218 GB, free: 32.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.3808, allocations: 113.6 kB / 0.5219 GB, free: 32.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.649e-05/0.3809, allocations: 25.05 kB / 0.5219 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.424e-06/0.3809, allocations: 4 kB / 0.5219 GB, free: 32.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.041e-05/0.381, allocations: 331.6 kB / 0.5223 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.111e-05/0.381, allocations: 28.59 kB / 0.5223 GB, free: 32.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.775e-05/0.3811, allocations: 71.84 kB / 0.5224 GB, free: 32.17 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.3813, allocations: 86.7 kB / 0.5224 GB, free: 32.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3813, allocations: 0 / 0.5224 GB, free: 32.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002181/0.3815, allocations: 140.9 kB / 0.5226 GB, free: 32.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.3815, allocations: 17.66 kB / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3815, allocations: 0 / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.3816, allocations: 2.812 kB / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.3817, allocations: 24.58 kB / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3817, allocations: 0 / 0.5226 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.282e-05/0.3818, allocations: 16.95 kB / 0.5226 GB, free: 32.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.3818, allocations: 5.312 kB / 0.5226 GB, free: 32.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled,$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 (14): * Single equations (assignments): 14 * 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.786e-05/0.3819, allocations: 132.5 kB / 0.5228 GB, free: 31.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.3819, allocations: 29.44 kB / 0.5228 GB, free: 31.87 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.15e-05/0.382, allocations: 18.94 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.382, allocations: 6.438 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.382, allocations: 0.625 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-06/0.382, allocations: 0 / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.3822, allocations: 221.9 kB / 0.523 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3822, allocations: 0 / 0.523 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.112e-05/0.3822, allocations: 20.45 kB / 0.523 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3822, allocations: 0 / 0.523 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.3822, allocations: 3.031 kB / 0.5231 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.3822, allocations: 0 / 0.5231 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3822, allocations: 4 kB / 0.5231 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002461/0.3825, allocations: 174.6 kB / 0.5232 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.398e-05/0.3825, allocations: 104.9 kB / 0.5233 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.21e-05/0.3826, allocations: 2.75 kB / 0.5233 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.17e-05/0.3827, allocations: 10.34 kB / 0.5233 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.354e-05/0.3827, allocations: 9.969 kB / 0.5233 GB, free: 31.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3827, allocations: 6.266 kB / 0.5233 GB, free: 31.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.3829, allocations: 178 kB / 0.5235 GB, free: 31.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3829, allocations: 0 / 0.5235 GB, free: 31.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002669/0.3832, allocations: 60.77 kB / 0.5236 GB, free: 31.27 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: 6 ($whenCondition2,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 4 (t_new.nextTimeEventScaled,t_new.nextTimeEvent,t_new_2.nextTimeEventScaled,t_new_2.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0009996/0.3842, allocations: 0.49 MB / 0.5241 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002174/0.3844, allocations: 80.27 kB / 0.5241 GB, free: 31.01 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3844, allocations: 2.375 kB / 0.5241 GB, free: 31.01 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.785e-05/0.3845, allocations: 45.05 kB / 0.5242 GB, free: 30.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.3849, allocations: 51.03 kB / 0.5242 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004736/0.3853, allocations: 330.1 kB / 0.5245 GB, free: 30.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000134/0.3855, allocations: 0.7241 MB / 0.5252 GB, free: 30.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.052e-05/0.3856, allocations: 28.23 kB / 0.5253 GB, free: 30.01 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3856, allocations: 0 / 0.5253 GB, free: 30.01 MB / 378.7 MB Notification: Performance of Templates: time 0.00442/0.39, allocations: 3.151 MB / 0.5284 GB, free: 29.66 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test81/Test81.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test81.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches