Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.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.Test40,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40") translateModel(ModelicaTest.Tables.CombiTimeTable.Test40,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001606/0.001606, allocations: 193.1 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 226.6 MB / 243.4 MB, free: 8.098 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000907/0.0009073, allocations: 99.64 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3091/0.3091, allocations: 44.81 MB / 392.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003556, allocations: 8 kB / 465.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.3513, allocations: 62.96 MB / 0.5159 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test40): time 0.001754/0.3531, allocations: 1.426 MB / 0.5173 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3543, allocations: 0.9498 MB / 0.5182 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.051e-05/0.3544, allocations: 2.781 kB / 0.5182 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002902/0.3547, allocations: 80.5 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.355, allocations: 95.11 kB / 0.5184 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.3552, allocations: 101.5 kB / 0.5185 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001352/0.3554, allocations: 98.36 kB / 0.5186 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.605e-05/0.3555, allocations: 6.516 kB / 0.5186 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.001e-05/0.3556, allocations: 49.33 kB / 0.5186 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.465e-05/0.3556, allocations: 44.92 kB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.3557, allocations: 3.031 kB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.916e-05/0.3558, allocations: 39.97 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.375e-05/0.3558, allocations: 23.98 kB / 0.5187 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.233e-05/0.3559, allocations: 61.06 kB / 0.5188 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001294/0.356, allocations: 92 kB / 0.5189 GB, free: 35.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.356, allocations: 2.906 kB / 0.5189 GB, free: 35.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.356, allocations: 3.938 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.356, allocations: 0 / 0.5189 GB, free: 35.11 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.0004374/0.3565, allocations: 413.4 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.3565, allocations: 9.875 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.3566, allocations: 11.19 kB / 0.5193 GB, free: 34.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.3568, allocations: 224.3 kB / 0.5195 GB, free: 34.47 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.3568, allocations: 7.344 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.3568, allocations: 7.156 kB / 0.5195 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.3569, allocations: 52.05 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.357, allocations: 0 / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.357, allocations: 3.938 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.357, allocations: 3.938 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.452e-05/0.3571, allocations: 22.27 kB / 0.5196 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002914/0.3574, allocations: 289.8 kB / 0.5199 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000139/0.3575, allocations: 57.55 kB / 0.5199 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.835e-05/0.3576, allocations: 24.91 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.3576, allocations: 3 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.3578, allocations: 65.34 kB / 0.52 GB, free: 34.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.3578, allocations: 0 / 0.52 GB, free: 34.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004625/0.3582, allocations: 184 kB / 0.5202 GB, free: 33.91 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.3583, allocations: 51.41 kB / 0.5202 GB, free: 33.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.3584, allocations: 224.7 kB / 0.5205 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.929e-06/0.3585, allocations: 25.7 kB / 0.5205 GB, free: 33.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.349e-05/0.3585, allocations: 105.1 kB / 0.5206 GB, free: 33.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.123e-05/0.3585, allocations: 25.7 kB / 0.5206 GB, free: 33.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/0.3585, allocations: 4 kB / 0.5206 GB, free: 33.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.346e-05/0.3586, allocations: 329.1 kB / 0.5209 GB, free: 33.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.794e-05/0.3587, allocations: 19.14 kB / 0.5209 GB, free: 33.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.279e-05/0.3587, allocations: 33.17 kB / 0.521 GB, free: 33.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.368e-05/0.3588, allocations: 62.95 kB / 0.521 GB, free: 33.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3588, allocations: 0 / 0.521 GB, free: 33.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002012/0.359, allocations: 110 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.3591, allocations: 5.812 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.3591, allocations: 0 / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3591, allocations: 2.938 kB / 0.5211 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.159e-05/0.3592, allocations: 12.03 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3592, allocations: 6.078 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.727e-05/0.3592, allocations: 10.94 kB / 0.5212 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.3593, allocations: 0 / 0.5212 GB, free: 33.09 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 8.07e-05/0.3593, allocations: 138.8 kB / 0.5213 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.701e-05/0.3594, allocations: 13.72 kB / 0.5213 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.081e-05/0.3594, allocations: 18.02 kB / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.3594, allocations: 0 / 0.5213 GB, free: 32.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.3594, allocations: 10.47 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3594, allocations: 3.938 kB / 0.5214 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003429/0.3598, allocations: 388.3 kB / 0.5217 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3598, allocations: 2.969 kB / 0.5217 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.038e-05/0.3598, allocations: 25.31 kB / 0.5217 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.3598, allocations: 2.969 kB / 0.5218 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.064e-05/0.3599, allocations: 3.938 kB / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3599, allocations: 0 / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3599, allocations: 2.938 kB / 0.5218 GB, free: 32.57 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.36, allocations: 198.3 kB / 0.5219 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.3601, allocations: 93.52 kB / 0.522 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.3601, allocations: 7.938 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.774e-05/0.3602, allocations: 6.203 kB / 0.522 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.3602, allocations: 10.84 kB / 0.5221 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3602, allocations: 9.078 kB / 0.5221 GB, free: 32.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001021/0.3603, allocations: 163.6 kB / 0.5222 GB, free: 32.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3604, allocations: 0 / 0.5222 GB, free: 32.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002318/0.3606, allocations: 26.53 kB / 0.5222 GB, free: 32.19 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.0009007/0.3615, allocations: 461.6 kB / 0.5227 GB, free: 31.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001508/0.3617, allocations: 65.2 kB / 0.5228 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3617, allocations: 0 / 0.5228 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.992e-05/0.3617, allocations: 29.38 kB / 0.5228 GB, free: 31.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003067/0.362, allocations: 25.41 kB / 0.5228 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003964/0.3625, allocations: 304.5 kB / 0.5231 GB, free: 31.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.3626, allocations: 0.7045 MB / 0.5238 GB, free: 31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.3626, allocations: 19.73 kB / 0.5238 GB, free: 30.99 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.3626, allocations: 0 / 0.5238 GB, free: 30.99 MB / 378.7 MB Notification: Performance of Templates: time 0.003027/0.3657, allocations: 1.981 MB / 0.5257 GB, free: 30.77 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test40/Test40.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches