Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.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.Test6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6") translateModel(ModelicaTest.Tables.CombiTimeTable.Test6,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.|d_t_new.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 194.4 kB / 16.09 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.343/1.343, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008337/0.0008338, allocations: 90.16 kB / 295.5 MB, free: 6.695 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3375/0.3375, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002868/0.0002868, allocations: 15.98 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4096/0.4099, allocations: 62.97 MB / 0.5159 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test6): time 0.002444/0.4124, allocations: 1.422 MB / 0.5173 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.4146, allocations: 0.9472 MB / 0.5182 GB, free: 35.47 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.53e-05/0.4147, allocations: 4 kB / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003549/0.4151, allocations: 53.36 kB / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003787/0.4155, allocations: 82.25 kB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.4159, allocations: 91.14 kB / 0.5184 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001933/0.4161, allocations: 93.66 kB / 0.5185 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.4163, allocations: 17.55 kB / 0.5185 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.4164, allocations: 41.45 kB / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.418e-05/0.4165, allocations: 33.75 kB / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.4166, allocations: 2.938 kB / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.4167, allocations: 36.84 kB / 0.5186 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.126e-05/0.4168, allocations: 30.08 kB / 0.5187 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.604e-05/0.4169, allocations: 64.44 kB / 0.5187 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.4171, allocations: 109.3 kB / 0.5188 GB, free: 35.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.4171, allocations: 0 / 0.5188 GB, free: 35.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.185e-06/0.4171, allocations: 0 / 0.5188 GB, free: 35.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.4172, allocations: 0 / 0.5188 GB, free: 35.17 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.0005835/0.4177, allocations: 430 kB / 0.5192 GB, free: 34.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.4178, allocations: 9.781 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.456e-05/0.4179, allocations: 15.09 kB / 0.5193 GB, free: 34.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.4182, allocations: 218.5 kB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.4182, allocations: 4.375 kB / 0.5195 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.4182, allocations: 6.812 kB / 0.5195 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001993/0.4184, allocations: 58.52 kB / 0.5195 GB, free: 34.47 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.495e-05/0.4185, allocations: 2.625 kB / 0.5195 GB, free: 34.47 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.4185, allocations: 3.938 kB / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.4185, allocations: 0 / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.4186, allocations: 20.16 kB / 0.5196 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004017/0.4191, allocations: 306.6 kB / 0.5199 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/0.4193, allocations: 60.8 kB / 0.5199 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.436e-05/0.4194, allocations: 25.05 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.4195, allocations: 0 / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002099/0.4197, allocations: 73.8 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 3.627e-06/0.4197, allocations: 4 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0007659/0.4205, allocations: 186.9 kB / 0.5202 GB, free: 33.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.4206, allocations: 54.34 kB / 0.5203 GB, free: 33.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003619/0.4209, allocations: 282.7 kB / 0.5205 GB, free: 33.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.421, allocations: 28.61 kB / 0.5205 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.421, allocations: 113.3 kB / 0.5207 GB, free: 33.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.4211, allocations: 20.48 kB / 0.5207 GB, free: 33.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/0.4211, allocations: 4 kB / 0.5207 GB, free: 33.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.657e-05/0.4212, allocations: 339.1 kB / 0.521 GB, free: 33.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.909e-05/0.4213, allocations: 16.22 kB / 0.521 GB, free: 33.24 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001/0.4214, allocations: 38.69 kB / 0.5211 GB, free: 33.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.4216, allocations: 63.31 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4216, allocations: 0 / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002912/0.4219, allocations: 100.1 kB / 0.5212 GB, free: 33.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.422, allocations: 10.09 kB / 0.5212 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.422, allocations: 3.609 kB / 0.5212 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.422, allocations: 0 / 0.5212 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/0.4222, allocations: 15 kB / 0.5212 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.4222, allocations: 0 / 0.5212 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.124e-05/0.4223, allocations: 18.11 kB / 0.5213 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.4223, allocations: 2.969 kB / 0.5213 GB, free: 33.1 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.0001393/0.4225, allocations: 136.1 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.4225, allocations: 16.28 kB / 0.5214 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.98e-05/0.4226, allocations: 26.19 kB / 0.5214 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.4226, allocations: 0 / 0.5214 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.4226, allocations: 0 / 0.5214 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.4226, allocations: 3.938 kB / 0.5214 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005712/0.4232, allocations: 410.4 kB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4232, allocations: 3.938 kB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.648e-05/0.4233, allocations: 8.406 kB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.4233, allocations: 3.188 kB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.4234, allocations: 14.88 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.4234, allocations: 0 / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.4234, allocations: 3.094 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003014/0.4237, allocations: 206.5 kB / 0.5221 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.4238, allocations: 98.39 kB / 0.5221 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.4238, allocations: 7.875 kB / 0.5222 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.424, allocations: 10.34 kB / 0.5222 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.699e-05/0.424, allocations: 6.906 kB / 0.5222 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.4241, allocations: 9.156 kB / 0.5222 GB, free: 32.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002392/0.4243, allocations: 208.1 kB / 0.5224 GB, free: 32.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4243, allocations: 0 / 0.5224 GB, free: 32.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004538/0.4248, allocations: 28.09 kB / 0.5224 GB, free: 32.18 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.001483/0.4263, allocations: 460.1 kB / 0.5228 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002681/0.4266, allocations: 63.31 kB / 0.5229 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4266, allocations: 0 / 0.5229 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001117/0.4267, allocations: 27.06 kB / 0.5229 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005647/0.4273, allocations: 36.17 kB / 0.523 GB, free: 31.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006865/0.428, allocations: 347.1 kB / 0.5233 GB, free: 31.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001757/0.4282, allocations: 0.7225 MB / 0.524 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.301e-05/0.4283, allocations: 14.84 kB / 0.524 GB, free: 30.95 MB / 378.7 MB Notification: Performance of SimCode: time 8.02e-07/0.4283, allocations: 0 / 0.524 GB, free: 30.95 MB / 378.7 MB Notification: Performance of Templates: time 0.005539/0.4339, allocations: 2.11 MB / 0.5261 GB, free: 30.71 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test6/Test6.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test6.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches