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.001127/0.001127, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2415/0.2415, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 79.81 kB / 480.9 MB, free: 4.461 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4092, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test5): time 0.003123/0.4123, allocations: 1.78 MB / 0.5323 GB, free: 12.01 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.4141, allocations: 1.032 MB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.27e-05/0.4142, allocations: 2 kB / 0.5334 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003627/0.4146, allocations: 102.3 kB / 0.5335 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.415, allocations: 128.8 kB / 0.5336 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002317/0.4152, allocations: 84.41 kB / 0.5337 GB, free: 11.01 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.4154, allocations: 134.2 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.4155, allocations: 27 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.4157, allocations: 59.28 kB / 0.5339 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.4158, allocations: 76.67 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.4158, allocations: 5.5 kB / 0.5339 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.416, allocations: 61.22 kB / 0.534 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.416, allocations: 30.91 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.051e-05/0.4161, allocations: 46.62 kB / 0.5341 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002452/0.4164, allocations: 167.5 kB / 0.5342 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4164, allocations: 0 / 0.5342 GB, free: 10.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4164, allocations: 4 kB / 0.5342 GB, free: 10.66 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.4164, allocations: 0 / 0.5342 GB, free: 10.66 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.0005998/0.417, allocations: 457.2 kB / 0.5347 GB, free: 10.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.417, allocations: 8.25 kB / 0.5347 GB, free: 10.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.257e-05/0.4171, allocations: 41.44 kB / 0.5347 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.161e-05/0.4171, allocations: 15.62 kB / 0.5347 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.4175, allocations: 230.9 kB / 0.535 GB, free: 9.906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.4175, allocations: 5.75 kB / 0.535 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.684e-05/0.4175, allocations: 8.062 kB / 0.535 GB, free: 9.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.4177, allocations: 78.22 kB / 0.535 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.4177, allocations: 0 / 0.535 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.4177, allocations: 1.375 kB / 0.535 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.4178, allocations: 1.375 kB / 0.5351 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.854e-05/0.4179, allocations: 35.22 kB / 0.5351 GB, free: 9.82 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004304/0.4183, allocations: 326.9 kB / 0.5354 GB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000279/0.4186, allocations: 86.22 kB / 0.5355 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.984e-05/0.4187, allocations: 29.97 kB / 0.5355 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.4187, allocations: 1.531 kB / 0.5355 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.4189, allocations: 77.41 kB / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 4.268e-06/0.4189, allocations: 112 / 0.5356 GB, free: 9.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.000906/0.4198, allocations: 314.9 kB / 0.5359 GB, free: 9.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.4198, allocations: 53.72 kB / 0.5359 GB, free: 9.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.4201, allocations: 254.3 kB / 0.5362 GB, free: 8.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.091e-05/0.4201, allocations: 31.83 kB / 0.5362 GB, free: 8.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.578e-05/0.4202, allocations: 119.1 kB / 0.5363 GB, free: 8.789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.704e-05/0.4203, allocations: 42.45 kB / 0.5364 GB, free: 8.754 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.4203, allocations: 32.56 kB / 0.5364 GB, free: 8.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4205, allocations: 327.8 kB / 0.5367 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.787e-05/0.4206, allocations: 44.39 kB / 0.5367 GB, free: 8.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.4207, allocations: 56.98 kB / 0.5368 GB, free: 8.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002982/0.421, allocations: 95.73 kB / 0.5369 GB, free: 8.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.421, allocations: 4 kB / 0.5369 GB, free: 8.281 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003338/0.4213, allocations: 162.3 kB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.4214, allocations: 5.312 kB / 0.5371 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.4214, allocations: 8.016 kB / 0.5371 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.4214, allocations: 5.344 kB / 0.5371 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.4215, allocations: 26.69 kB / 0.5371 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.4216, allocations: 3.984 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.324e-05/0.4216, allocations: 2.656 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.4216, allocations: 3.875 kB / 0.5371 GB, free: 8.172 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.0001724/0.4218, allocations: 144.6 kB / 0.5372 GB, free: 8.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.4219, allocations: 15.09 kB / 0.5373 GB, free: 8.031 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.368e-05/0.4219, allocations: 38.53 kB / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.422, allocations: 2.625 kB / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.422, allocations: 0 / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.422, allocations: 0 / 0.5373 GB, free: 7.996 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008724/0.4229, allocations: 0.4974 MB / 0.5378 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.4229, allocations: 5.109 kB / 0.5378 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.529e-05/0.4229, allocations: 15.91 kB / 0.5378 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.423, allocations: 9.094 kB / 0.5378 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.423, allocations: 7.375 kB / 0.5378 GB, free: 7.531 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.423, allocations: 5.078 kB / 0.5378 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.423, allocations: 1.156 kB / 0.5378 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.4234, allocations: 262.5 kB / 0.5381 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.745e-05/0.4235, allocations: 89.67 kB / 0.5382 GB, free: 7.223 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.4235, allocations: 10.75 kB / 0.5382 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.371e-05/0.4236, allocations: 2.5 kB / 0.5382 GB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.4237, allocations: 9.953 kB / 0.5382 GB, free: 7.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.828e-05/0.4237, allocations: 9 kB / 0.5382 GB, free: 7.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003536/0.4241, allocations: 196.3 kB / 0.5384 GB, free: 7.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4241, allocations: 0 / 0.5384 GB, free: 7.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003646/0.4245, allocations: 36.78 kB / 0.5384 GB, free: 7.07 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.002248/0.4267, allocations: 1.202 MB / 0.5396 GB, free: 6.164 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002788/0.427, allocations: 107.4 kB / 0.5397 GB, free: 6.117 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.427, allocations: 64 / 0.5397 GB, free: 6.117 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.4272, allocations: 58.48 kB / 0.5397 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004089/0.4276, allocations: 41.3 kB / 0.5398 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.4304, allocations: 2.009 MB / 0.5417 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/0.4308, allocations: 0.7221 MB / 0.5425 GB, free: 3.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.033e-05/0.4309, allocations: 28.08 kB / 0.5425 GB, free: 3.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.203e-05/0.431, allocations: 52.52 kB / 0.5425 GB, free: 3.676 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.431, allocations: 4 kB / 0.5425 GB, free: 3.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.461, allocations: 4.378 MB / 0.5468 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.673/8.134, allocations: 11.75 kB / 0.5468 GB, free: 0.9258 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