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.001866/0.001866, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002182/0.002182, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 247 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.13 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 83.84 kB / 481 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3702, allocations: 62.44 MB / 0.5307 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.003748/0.374, allocations: 2.037 MB / 0.5327 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.376, allocations: 1.113 MB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.3761, allocations: 1.375 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.3764, allocations: 53.25 kB / 0.5338 GB, free: 10.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.3768, allocations: 104.3 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.3771, allocations: 116.1 kB / 0.534 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002867/0.3774, allocations: 205.8 kB / 0.5342 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.3775, allocations: 23.78 kB / 0.5342 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.3777, allocations: 89.75 kB / 0.5343 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001346/0.3778, allocations: 76.17 kB / 0.5344 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.391e-05/0.3779, allocations: 11.62 kB / 0.5344 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.378, allocations: 55.92 kB / 0.5345 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.3781, allocations: 40.2 kB / 0.5345 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.3782, allocations: 83.83 kB / 0.5346 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003291/0.3785, allocations: 195.7 kB / 0.5348 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3786, allocations: 0 / 0.5348 GB, free: 10.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3786, allocations: 1.094 kB / 0.5348 GB, free: 10.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.3786, allocations: 0 / 0.5348 GB, free: 10.22 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.001053/0.3796, allocations: 0.5755 MB / 0.5353 GB, free: 9.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.3797, allocations: 13.12 kB / 0.5353 GB, free: 9.652 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.995e-05/0.3797, allocations: 42.67 kB / 0.5354 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.428e-05/0.3798, allocations: 17.88 kB / 0.5354 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.3802, allocations: 252.1 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.3802, allocations: 4.688 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.3802, allocations: 13.44 kB / 0.5357 GB, free: 9.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.3806, allocations: 153.6 kB / 0.5358 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.3807, allocations: 1.375 kB / 0.5358 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3807, allocations: 1.375 kB / 0.5358 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3807, allocations: 1.375 kB / 0.5358 GB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000452/0.3811, allocations: 114.9 kB / 0.5359 GB, free: 9.16 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007688/0.3819, allocations: 0.5401 MB / 0.5364 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000718/0.3827, allocations: 171 kB / 0.5366 GB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.3829, allocations: 69.48 kB / 0.5367 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.383, allocations: 1.062 kB / 0.5367 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004453/0.3834, allocations: 137.7 kB / 0.5368 GB, free: 8.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 6.362e-06/0.3834, allocations: 0 / 0.5368 GB, free: 8.383 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0009742/0.3844, allocations: 265.8 kB / 0.5371 GB, free: 8.242 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.3845, allocations: 61.72 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002835/0.3848, allocations: 236.2 kB / 0.5373 GB, free: 8.004 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3848, allocations: 31.95 kB / 0.5374 GB, free: 7.969 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.3849, allocations: 125.5 kB / 0.5375 GB, free: 7.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/0.385, allocations: 36.28 kB / 0.5375 GB, free: 7.816 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/0.3851, allocations: 38.61 kB / 0.5376 GB, free: 7.785 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3852, allocations: 331.6 kB / 0.5379 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002712/0.3855, allocations: 71.94 kB / 0.538 GB, free: 7.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.3858, allocations: 104.2 kB / 0.5381 GB, free: 7.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005309/0.3863, allocations: 201.6 kB / 0.5382 GB, free: 7.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3864, allocations: 1.312 kB / 0.5382 GB, free: 7.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006638/0.387, allocations: 257.6 kB / 0.5385 GB, free: 7.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.3871, allocations: 32.64 kB / 0.5385 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.3871, allocations: 1.25 kB / 0.5385 GB, free: 7.016 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.3871, allocations: 8.969 kB / 0.5385 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001808/0.3873, allocations: 41.12 kB / 0.5386 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3873, allocations: 10.55 kB / 0.5386 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3875, allocations: 25.44 kB / 0.5386 GB, free: 6.973 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.3875, allocations: 13.14 kB / 0.5386 GB, free: 6.965 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.0001483/0.3877, allocations: 134.9 kB / 0.5387 GB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.3877, allocations: 15.84 kB / 0.5388 GB, free: 6.828 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.3878, allocations: 22.8 kB / 0.5388 GB, free: 6.805 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.734e-06/0.3878, allocations: 10.39 kB / 0.5388 GB, free: 6.797 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3878, allocations: 4 kB / 0.5388 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3878, allocations: 0 / 0.5388 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002476/0.3881, allocations: 241.3 kB / 0.539 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3881, allocations: 0 / 0.539 GB, free: 6.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001552/0.3883, allocations: 24.41 kB / 0.5391 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3883, allocations: 1.125 kB / 0.5391 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.3883, allocations: 1.25 kB / 0.5391 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.658e-06/0.3883, allocations: 3.938 kB / 0.5391 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.3883, allocations: 1.031 kB / 0.5391 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009155/0.3892, allocations: 314 kB / 0.5394 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.866e-05/0.3893, allocations: 97.45 kB / 0.5394 GB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.3894, allocations: 2.562 kB / 0.5395 GB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.3895, allocations: 31.84 kB / 0.5395 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.3896, allocations: 14.05 kB / 0.5395 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.3896, allocations: 8.016 kB / 0.5395 GB, free: 6.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.3898, allocations: 168.1 kB / 0.5397 GB, free: 6.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3898, allocations: 0 / 0.5397 GB, free: 6.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002666/0.3901, allocations: 41.27 kB / 0.5397 GB, free: 6.07 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.002632/0.3927, allocations: 1.128 MB / 0.5408 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006624/0.3934, allocations: 228.4 kB / 0.541 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3934, allocations: 0 / 0.541 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002772/0.3937, allocations: 76.56 kB / 0.5411 GB, free: 5.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.3941, allocations: 60.06 kB / 0.5412 GB, free: 5.035 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003576/0.3976, allocations: 2.18 MB / 0.5433 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.3981, allocations: 0.7227 MB / 0.544 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.3982, allocations: 16.67 kB / 0.544 GB, free: 2.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.3984, allocations: 62.53 kB / 0.5441 GB, free: 2.543 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3984, allocations: 0 / 0.5441 GB, free: 2.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.4291, allocations: 5.008 MB / 0.549 GB, free: 14.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.2/8.629, allocations: 26 kB / 0.549 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[503]=0.501000 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