Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.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.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test14,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001227/0.001227, allocations: 121.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001538/0.001538, allocations: 200.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2104/0.2104, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.88 kB / 480.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3579, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003862/0.3618, allocations: 2.036 MB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.3638, allocations: 1.106 MB / 0.5336 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.3639, allocations: 5.375 kB / 0.5337 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003093/0.3642, allocations: 54.62 kB / 0.5337 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003996/0.3647, allocations: 108.2 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003252/0.365, allocations: 110.7 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005053/0.3655, allocations: 206.1 kB / 0.5341 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.3657, allocations: 28.05 kB / 0.5341 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.3659, allocations: 84.95 kB / 0.5342 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.366, allocations: 81.78 kB / 0.5343 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.684e-05/0.366, allocations: 11.09 kB / 0.5343 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001412/0.3662, allocations: 52.23 kB / 0.5344 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.3663, allocations: 44.92 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.676e-05/0.3664, allocations: 70.89 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.3668, allocations: 198.3 kB / 0.5347 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3668, allocations: 1.062 kB / 0.5347 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3668, allocations: 4 kB / 0.5347 GB, free: 10.24 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.3668, allocations: 0 / 0.5347 GB, free: 10.24 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.001027/0.3679, allocations: 0.5617 MB / 0.5352 GB, free: 9.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.3679, allocations: 8.5 kB / 0.5352 GB, free: 9.691 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.368, allocations: 45.03 kB / 0.5353 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.6e-05/0.368, allocations: 18.47 kB / 0.5353 GB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003698/0.3684, allocations: 257.4 kB / 0.5355 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.3685, allocations: 3.125 kB / 0.5355 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.3685, allocations: 18.8 kB / 0.5355 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.3689, allocations: 152.1 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3689, allocations: 0 / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.369, allocations: 5.375 kB / 0.5357 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.369, allocations: 2.75 kB / 0.5357 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/0.3694, allocations: 111 kB / 0.5358 GB, free: 9.191 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006827/0.3701, allocations: 0.5466 MB / 0.5363 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006754/0.3708, allocations: 163.9 kB / 0.5365 GB, free: 8.551 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.3711, allocations: 73.23 kB / 0.5366 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.3711, allocations: 1.094 kB / 0.5366 GB, free: 8.512 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.3715, allocations: 141.8 kB / 0.5367 GB, free: 8.406 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 2.965e-06/0.3715, allocations: 7.984 kB / 0.5367 GB, free: 8.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008996/0.3724, allocations: 256.9 kB / 0.5369 GB, free: 8.266 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.3725, allocations: 61.73 kB / 0.537 GB, free: 8.195 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.3727, allocations: 224.9 kB / 0.5372 GB, free: 8.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3727, allocations: 39.94 kB / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/0.3728, allocations: 129.5 kB / 0.5374 GB, free: 7.871 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.1e-05/0.3729, allocations: 37.17 kB / 0.5374 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.373, allocations: 33.77 kB / 0.5375 GB, free: 7.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3731, allocations: 327.4 kB / 0.5378 GB, free: 7.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.3734, allocations: 67.88 kB / 0.5378 GB, free: 7.457 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.3737, allocations: 109 kB / 0.5379 GB, free: 7.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000513/0.3742, allocations: 194.5 kB / 0.5381 GB, free: 7.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.3742, allocations: 1.5 kB / 0.5381 GB, free: 7.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006596/0.3749, allocations: 261.3 kB / 0.5384 GB, free: 7.078 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.839e-05/0.3749, allocations: 35.48 kB / 0.5384 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/0.3749, allocations: 1.25 kB / 0.5384 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.375, allocations: 6.062 kB / 0.5384 GB, free: 7.039 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.3751, allocations: 37.34 kB / 0.5384 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3752, allocations: 2.156 kB / 0.5384 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.3753, allocations: 29.75 kB / 0.5385 GB, free: 7.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.3754, allocations: 9.062 kB / 0.5385 GB, free: 7.008 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.t_new.nextTimeEvent,$whenCondition2,t_new.nextTimeEventScaled,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEvent,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1,err1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * 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.000119/0.3755, allocations: 137.8 kB / 0.5386 GB, free: 6.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.3755, allocations: 21 kB / 0.5386 GB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.574e-05/0.3756, allocations: 22.48 kB / 0.5387 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3756, allocations: 5.344 kB / 0.5387 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.3756, allocations: 5.375 kB / 0.5387 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3756, allocations: 0 / 0.5387 GB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.3759, allocations: 237.2 kB / 0.5389 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3759, allocations: 0 / 0.5389 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.376, allocations: 27.38 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.376, allocations: 0.875 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.3761, allocations: 2.219 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.3761, allocations: 3.938 kB / 0.5389 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3761, allocations: 1.125 kB / 0.5389 GB, free: 6.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008845/0.377, allocations: 316.4 kB / 0.5392 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.631e-05/0.377, allocations: 89.48 kB / 0.5393 GB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.3771, allocations: 6.266 kB / 0.5393 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.3773, allocations: 27.72 kB / 0.5393 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.3773, allocations: 14.55 kB / 0.5394 GB, free: 6.246 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.3774, allocations: 7.062 kB / 0.5394 GB, free: 6.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000173/0.3775, allocations: 171.7 kB / 0.5395 GB, free: 6.125 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3775, allocations: 0 / 0.5395 GB, free: 6.125 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.3778, allocations: 45.52 kB / 0.5396 GB, free: 6.109 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,trapezoid1.T_start,trapezoid1.count,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 3 (trapezoid1.count,t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.002059/0.3799, allocations: 1.13 MB / 0.5407 GB, free: 5.277 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006464/0.3806, allocations: 217.7 kB / 0.5409 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3806, allocations: 0 / 0.5409 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002712/0.3808, allocations: 76.91 kB / 0.541 GB, free: 5.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003688/0.3812, allocations: 58.39 kB / 0.541 GB, free: 5.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.3847, allocations: 2.179 MB / 0.5431 GB, free: 3.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.385, allocations: 0.7263 MB / 0.5439 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001123/0.3851, allocations: 22.44 kB / 0.5439 GB, free: 2.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3852, allocations: 54.3 kB / 0.5439 GB, free: 2.594 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3852, allocations: 0 / 0.5439 GB, free: 2.594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.4105, allocations: 5.101 MB / 0.5489 GB, free: 14.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/8.157, allocations: 11.84 kB / 0.5489 GB, free: 14.63 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test14.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test14/Test14.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5004]=2.000000 File[128]=0.504000 Error: Could not read variable trapezoid1.T_start in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.T_start from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! Error: Could not read variable trapezoid1.count in file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat. Warning: Get data of variable trapezoid1.count from file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test14_res.mat failed! " Variables in the reference:time,err1.y,trapezoid1.T_start,trapezoid1.count Variables in the result:der(err1.y),err1.initType,err1.k,err1.u,err1.use_reset,err1.use_set,err1.y,err1.y_start,feedback1.u1,feedback1.u2,feedback1.y,product1.u1,product1.u2,product1.y,t_new.columns[1],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[2,1],t_new.table[2,2],t_new.timeEvents,t_new.timeScale,t_new.verboseExtrapolation,t_new.verboseRead,t_new.y[1],threshold,time,trapezoid1.amplitude,trapezoid1.falling,trapezoid1.nperiod,trapezoid1.offset,trapezoid1.period,trapezoid1.rising,trapezoid1.startTime,trapezoid1.width,trapezoid1.y