Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test5,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001808/0.001808, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002112/0.002112, allocations: 200.7 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2343/0.2343, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002219, allocations: 75.88 kB / 481 MB, free: 4.383 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3421/0.3444, allocations: 62.45 MB / 0.5307 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.003505/0.3479, allocations: 1.762 MB / 0.5324 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.3499, allocations: 1.039 MB / 0.5335 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.762e-05/0.35, allocations: 1.906 kB / 0.5335 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003749/0.3504, allocations: 103.5 kB / 0.5336 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.351, allocations: 128 kB / 0.5337 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.3513, allocations: 84.69 kB / 0.5338 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.3515, allocations: 137.1 kB / 0.5339 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000121/0.3516, allocations: 20.39 kB / 0.5339 GB, free: 10.87 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.3517, allocations: 61.91 kB / 0.534 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.3519, allocations: 74.11 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.3519, allocations: 5.5 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.352, allocations: 59.84 kB / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.927e-05/0.3521, allocations: 34.84 kB / 0.5341 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.3522, allocations: 50.61 kB / 0.5342 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002975/0.3525, allocations: 160.7 kB / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.3525, allocations: 4 kB / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3525, allocations: 0 / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.718e-06/0.3525, allocations: 0 / 0.5343 GB, free: 10.61 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006266/0.3532, allocations: 472.9 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3532, allocations: 9.625 kB / 0.5348 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.007e-05/0.3533, allocations: 32.12 kB / 0.5348 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.698e-05/0.3533, allocations: 15.72 kB / 0.5348 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.3537, allocations: 235 kB / 0.5351 GB, free: 9.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.659e-05/0.3537, allocations: 5.75 kB / 0.5351 GB, free: 9.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.3537, allocations: 8.062 kB / 0.5351 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.3539, allocations: 70.28 kB / 0.5352 GB, free: 9.781 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.354, allocations: 15.88 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.354, allocations: 1.375 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.354, allocations: 1.375 kB / 0.5352 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001145/0.3541, allocations: 39.16 kB / 0.5352 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004657/0.3546, allocations: 335.3 kB / 0.5355 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.3549, allocations: 70.42 kB / 0.5356 GB, free: 9.363 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.813e-05/0.355, allocations: 33.44 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.355, allocations: 0.9688 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.3552, allocations: 77.88 kB / 0.5357 GB, free: 9.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.3552, allocations: 0.9062 kB / 0.5357 GB, free: 9.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000921/0.3561, allocations: 306.4 kB / 0.536 GB, free: 9.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.3562, allocations: 53.72 kB / 0.536 GB, free: 9.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.3565, allocations: 262.2 kB / 0.5363 GB, free: 8.867 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.3565, allocations: 35.8 kB / 0.5363 GB, free: 8.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.935e-05/0.3566, allocations: 112.2 kB / 0.5364 GB, free: 8.723 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.551e-05/0.3567, allocations: 50.38 kB / 0.5365 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.3568, allocations: 27.91 kB / 0.5365 GB, free: 8.656 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.357, allocations: 332 kB / 0.5368 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.488e-05/0.3571, allocations: 41.33 kB / 0.5369 GB, free: 8.309 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.3572, allocations: 59.06 kB / 0.5369 GB, free: 8.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3574, allocations: 103.4 kB / 0.537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3574, allocations: 0 / 0.537 GB, free: 8.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002846/0.3577, allocations: 157.1 kB / 0.5372 GB, free: 8.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3577, allocations: 5.375 kB / 0.5372 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3577, allocations: 1.281 kB / 0.5372 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.3577, allocations: 9.281 kB / 0.5372 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3578, allocations: 33.42 kB / 0.5372 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3578, allocations: 9.078 kB / 0.5372 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.969e-05/0.3579, allocations: 6.484 kB / 0.5372 GB, free: 8.094 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.3579, allocations: 3.812 kB / 0.5372 GB, free: 8.094 MB / 398.1 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 ($PRE.t_new.nextTimeEvent,$whenCondition1,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001503/0.3581, allocations: 141.6 kB / 0.5374 GB, free: 7.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.607e-05/0.3581, allocations: 19.77 kB / 0.5374 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.2e-05/0.3582, allocations: 30.7 kB / 0.5374 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.3582, allocations: 1.5 kB / 0.5374 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.3582, allocations: 1.531 kB / 0.5374 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3582, allocations: 4 kB / 0.5374 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006911/0.3589, allocations: 0.4926 MB / 0.5379 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.359, allocations: 1.062 kB / 0.5379 GB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.48e-05/0.359, allocations: 28.17 kB / 0.5379 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.3591, allocations: 1.125 kB / 0.5379 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.3591, allocations: 3.219 kB / 0.5379 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.3591, allocations: 1.062 kB / 0.5379 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3591, allocations: 5.188 kB / 0.5379 GB, free: 7.457 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003355/0.3594, allocations: 259.5 kB / 0.5382 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.34e-05/0.3595, allocations: 94.03 kB / 0.5383 GB, free: 7.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/0.3595, allocations: 6.094 kB / 0.5383 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.448e-05/0.3596, allocations: 3.156 kB / 0.5383 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.159e-05/0.3597, allocations: 17.61 kB / 0.5383 GB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.3597, allocations: 8.625 kB / 0.5383 GB, free: 7.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.3599, allocations: 197 kB / 0.5385 GB, free: 7.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3599, allocations: 0 / 0.5385 GB, free: 7.004 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.3602, allocations: 35.84 kB / 0.5385 GB, free: 6.992 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002641/0.3628, allocations: 1.211 MB / 0.5397 GB, free: 6.078 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002728/0.3631, allocations: 102.4 kB / 0.5398 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3631, allocations: 1.156 kB / 0.5398 GB, free: 6.035 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.3632, allocations: 49.95 kB / 0.5399 GB, free: 6.016 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.3636, allocations: 47.89 kB / 0.5399 GB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002646/0.3663, allocations: 2.001 MB / 0.5419 GB, free: 4.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.3669, allocations: 0.7255 MB / 0.5426 GB, free: 3.656 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.482e-05/0.367, allocations: 25.97 kB / 0.5426 GB, free: 3.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.3671, allocations: 55.5 kB / 0.5427 GB, free: 3.602 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3671, allocations: 0 / 0.5427 GB, free: 3.602 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.3945, allocations: 4.342 MB / 0.5469 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.255/8.65, allocations: 11.44 kB / 0.5469 GB, free: 0.8711 MB / 398.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test5.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test5/Test5.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test5.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,t_new.y[1],t_new.y[2],d_t_new.y,d_t_new2.y,d2_t_new.y Variables in the result:d2_t_new.u,d2_t_new.y,d_t_new.u,d_t_new.y,d_t_new2.u,d_t_new2.y,der(d2_t_new.u),der(d_t_new.u),der(d_t_new2.u),t_new.columns[1],t_new.columns[2],t_new.extrapolation,t_new.nHeaderLines,t_new.nout,t_new.offset[1],t_new.shiftTime,t_new.smoothness,t_new.startTime,t_new.t_max,t_new.t_maxScaled,t_new.t_min,t_new.t_minScaled,t_new.tableOnFile,t_new.table[1,1],t_new.table[1,2],t_new.table[1,3],t_new.table[2,1],t_new.table[2,2],t_new.table[2,3],t_new.table[3,1],t_new.table[3,2],t_new.table[3,3],t_new.table[4,1],t_new.table[4,2],t_new.table[4,3],t_new.table[5,1],t_new.table[5,2],t_new.table[5,3],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],t_new.y[2],time