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.001374/0.001374, allocations: 118.8 kB / 17.79 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001637/0.001637, allocations: 201.2 kB / 18.73 MB, free: 4.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 71.89 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3046, allocations: 62.45 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test14): time 0.00403/0.3087, allocations: 2.038 MB / 0.5326 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.3108, allocations: 1.109 MB / 0.5337 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.3111, allocations: 2.75 kB / 0.5337 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.3116, allocations: 45.27 kB / 0.5337 GB, free: 10.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005898/0.3122, allocations: 116.3 kB / 0.5338 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.3126, allocations: 112.4 kB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.313, allocations: 201.9 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.3131, allocations: 27.42 kB / 0.5341 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.3133, allocations: 77.89 kB / 0.5342 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.3135, allocations: 88.17 kB / 0.5343 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.629e-05/0.3135, allocations: 16.31 kB / 0.5343 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001574/0.3137, allocations: 51.73 kB / 0.5344 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.343e-05/0.3138, allocations: 40.08 kB / 0.5344 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.968e-05/0.3139, allocations: 76.02 kB / 0.5345 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000357/0.3142, allocations: 202.1 kB / 0.5347 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3142, allocations: 0 / 0.5347 GB, free: 10.25 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3142, allocations: 1.375 kB / 0.5347 GB, free: 10.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3143, allocations: 0 / 0.5347 GB, free: 10.25 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.001094/0.3154, allocations: 0.5606 MB / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.3154, allocations: 9 kB / 0.5352 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.763e-05/0.3155, allocations: 41.39 kB / 0.5353 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.789e-05/0.3156, allocations: 18.19 kB / 0.5353 GB, free: 9.641 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003981/0.316, allocations: 256.4 kB / 0.5355 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.316, allocations: 8.844 kB / 0.5355 GB, free: 9.375 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.187e-05/0.316, allocations: 13.66 kB / 0.5355 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.3165, allocations: 146 kB / 0.5357 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.3165, allocations: 3.938 kB / 0.5357 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.3165, allocations: 9.234 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3165, allocations: 2.25 kB / 0.5357 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.3169, allocations: 107.3 kB / 0.5358 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006858/0.3176, allocations: 0.5469 MB / 0.5363 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006433/0.3183, allocations: 164 kB / 0.5365 GB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.3185, allocations: 69.17 kB / 0.5366 GB, free: 8.523 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.3186, allocations: 9.062 kB / 0.5366 GB, free: 8.516 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000361/0.3189, allocations: 137.3 kB / 0.5367 GB, free: 8.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=12): time 1.633e-06/0.319, allocations: 0 / 0.5367 GB, free: 8.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008361/0.3198, allocations: 257.8 kB / 0.5369 GB, free: 8.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.241e-05/0.3199, allocations: 57.69 kB / 0.537 GB, free: 8.215 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.3201, allocations: 229.5 kB / 0.5372 GB, free: 8.055 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.3201, allocations: 31.8 kB / 0.5373 GB, free: 8.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.969e-05/0.3202, allocations: 136.8 kB / 0.5374 GB, free: 7.887 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.3203, allocations: 36.98 kB / 0.5374 GB, free: 7.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.235e-05/0.3203, allocations: 34.25 kB / 0.5374 GB, free: 7.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.3205, allocations: 334.8 kB / 0.5378 GB, free: 7.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000251/0.3207, allocations: 65.03 kB / 0.5378 GB, free: 7.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002648/0.321, allocations: 104.8 kB / 0.5379 GB, free: 7.391 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/0.3215, allocations: 199.7 kB / 0.5381 GB, free: 7.246 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3215, allocations: 0 / 0.5381 GB, free: 7.246 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006664/0.3222, allocations: 253.7 kB / 0.5384 GB, free: 7.094 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.001e-05/0.3222, allocations: 36 kB / 0.5384 GB, free: 7.059 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3223, allocations: 6.219 kB / 0.5384 GB, free: 7.055 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3223, allocations: 10.16 kB / 0.5384 GB, free: 7.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.3225, allocations: 36.22 kB / 0.5384 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3225, allocations: 1.719 kB / 0.5384 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.3227, allocations: 30.72 kB / 0.5385 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/0.3227, allocations: 4.625 kB / 0.5385 GB, free: 7.02 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.0001319/0.3229, allocations: 138.5 kB / 0.5386 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.975e-05/0.3229, allocations: 24.28 kB / 0.5386 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.975e-05/0.323, allocations: 19.28 kB / 0.5387 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.323, allocations: 9.016 kB / 0.5387 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.323, allocations: 5.078 kB / 0.5387 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.323, allocations: 0 / 0.5387 GB, free: 6.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.3232, allocations: 232.8 kB / 0.5389 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3232, allocations: 0 / 0.5389 GB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.3234, allocations: 24.7 kB / 0.5389 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.3234, allocations: 0 / 0.5389 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.917e-05/0.3234, allocations: 10.3 kB / 0.5389 GB, free: 6.578 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3234, allocations: 7.938 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3234, allocations: 1.031 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008426/0.3243, allocations: 309.8 kB / 0.5392 GB, free: 6.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.694e-05/0.3243, allocations: 89.17 kB / 0.5393 GB, free: 6.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.3244, allocations: 5.656 kB / 0.5393 GB, free: 6.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001812/0.3246, allocations: 24.19 kB / 0.5393 GB, free: 6.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.999e-05/0.3247, allocations: 18.06 kB / 0.5394 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.3247, allocations: 4.156 kB / 0.5394 GB, free: 6.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001498/0.3248, allocations: 174.6 kB / 0.5395 GB, free: 6.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3248, allocations: 1.281 kB / 0.5395 GB, free: 6.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000259/0.3251, allocations: 48.53 kB / 0.5396 GB, free: 6.113 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.001844/0.327, allocations: 1.13 MB / 0.5407 GB, free: 5.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006/0.3276, allocations: 221 kB / 0.5409 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3276, allocations: 0 / 0.5409 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002614/0.3279, allocations: 84.44 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.0003305/0.3282, allocations: 41.23 kB / 0.541 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.3313, allocations: 2.175 MB / 0.5431 GB, free: 3.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3316, allocations: 0.7258 MB / 0.5438 GB, free: 2.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.3317, allocations: 29.39 kB / 0.5439 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.917e-05/0.3318, allocations: 50.45 kB / 0.5439 GB, free: 2.605 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3318, allocations: 0 / 0.5439 GB, free: 2.605 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.3549, allocations: 5.109 MB / 0.5489 GB, free: 14.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.969/8.324, allocations: 18.16 kB / 0.5489 GB, free: 14.62 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