Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.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.Test70,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test70",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test70,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test70",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, 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.001427/0.001427, allocations: 201.2 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.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2802/0.2802, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 75.88 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3329, allocations: 62.43 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test70): time 0.003484/0.3365, allocations: 1.84 MB / 0.5324 GB, free: 11.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002101/0.3386, allocations: 1.091 MB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001671/0.3388, allocations: 2.281 kB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006045/0.3394, allocations: 304 kB / 0.5337 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005927/0.3401, allocations: 258.8 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003367/0.3404, allocations: 101.8 kB / 0.5341 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003935/0.3408, allocations: 266.8 kB / 0.5343 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.598e-05/0.3409, allocations: 17.92 kB / 0.5343 GB, free: 10.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.3412, allocations: 133.5 kB / 0.5345 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002684/0.3414, allocations: 196.5 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.368e-05/0.3415, allocations: 7.375 kB / 0.5347 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001471/0.3416, allocations: 50.44 kB / 0.5347 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.3418, allocations: 142.3 kB / 0.5349 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.342, allocations: 154.7 kB / 0.535 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005554/0.3426, allocations: 373.3 kB / 0.5354 GB, free: 9.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3426, allocations: 0 / 0.5354 GB, free: 9.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3426, allocations: 0 / 0.5354 GB, free: 9.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.606e-05/0.3426, allocations: 5.062 kB / 0.5354 GB, free: 9.977 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.001448/0.3441, allocations: 0.7579 MB / 0.5361 GB, free: 9.297 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.3441, allocations: 9.344 kB / 0.5361 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.461e-05/0.3442, allocations: 37.38 kB / 0.5361 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001455/0.3443, allocations: 49.86 kB / 0.5362 GB, free: 9.227 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008735/0.3452, allocations: 460.7 kB / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.3452, allocations: 6.891 kB / 0.5366 GB, free: 8.855 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.3453, allocations: 10.53 kB / 0.5366 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3455, allocations: 80.25 kB / 0.5367 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.3455, allocations: 0 / 0.5367 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.3455, allocations: 5.266 kB / 0.5367 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.3456, allocations: 1.406 kB / 0.5367 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.3457, allocations: 30.98 kB / 0.5368 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.3463, allocations: 386.9 kB / 0.5371 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002955/0.3466, allocations: 109.1 kB / 0.5372 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.3467, allocations: 37.92 kB / 0.5373 GB, free: 8.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.3467, allocations: 5.094 kB / 0.5373 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002383/0.347, allocations: 116.6 kB / 0.5374 GB, free: 8.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 3.016e-06/0.347, allocations: 3.938 kB / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005636/0.3475, allocations: 200.7 kB / 0.5376 GB, free: 8.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.376e-05/0.3476, allocations: 83.39 kB / 0.5377 GB, free: 7.992 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/0.3492, allocations: 1.053 MB / 0.5387 GB, free: 7.512 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.3492, allocations: 26.67 kB / 0.5387 GB, free: 7.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002426/0.3495, allocations: 239.1 kB / 0.5389 GB, free: 7.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.775e-05/0.3495, allocations: 31.98 kB / 0.539 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.598e-05/0.3496, allocations: 31.11 kB / 0.539 GB, free: 7.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002636/0.3499, allocations: 369 kB / 0.5394 GB, free: 6.867 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001498/0.3501, allocations: 27.2 kB / 0.5394 GB, free: 6.855 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.3502, allocations: 59.3 kB / 0.5394 GB, free: 6.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.3505, allocations: 94.53 kB / 0.5395 GB, free: 6.734 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.3505, allocations: 3.938 kB / 0.5395 GB, free: 6.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004702/0.351, allocations: 176.4 kB / 0.5397 GB, free: 6.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.131e-05/0.351, allocations: 9.141 kB / 0.5397 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.351, allocations: 0.75 kB / 0.5397 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.3511, allocations: 2.5 kB / 0.5397 GB, free: 6.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.3512, allocations: 25.62 kB / 0.5397 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.3513, allocations: 5.328 kB / 0.5397 GB, free: 6.609 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.3514, allocations: 8.219 kB / 0.5397 GB, free: 6.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.3515, allocations: 4.125 kB / 0.5398 GB, free: 6.605 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.startTime.nextTimeEvent,$whenCondition2,startTime.nextTimeEventScaled,$PRE.startTime.nextTimeEventScaled,startTime.nextTimeEvent,$PRE.startTime_0.nextTimeEvent,$whenCondition1,startTime_0.nextTimeEventScaled,$PRE.startTime_0.nextTimeEventScaled,startTime_0.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0003244/0.3518, allocations: 229.1 kB / 0.54 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.3519, allocations: 54.91 kB / 0.54 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001226/0.352, allocations: 58.86 kB / 0.5401 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3521, allocations: 2.25 kB / 0.5401 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.51e-05/0.3521, allocations: 0 / 0.5401 GB, free: 6.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3521, allocations: 4.969 kB / 0.5401 GB, free: 6.375 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004568/0.3526, allocations: 351 kB / 0.5404 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3526, allocations: 0 / 0.5404 GB, free: 6.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.895e-05/0.3527, allocations: 10.42 kB / 0.5404 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.3527, allocations: 1.094 kB / 0.5404 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.3527, allocations: 2.188 kB / 0.5404 GB, free: 6.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3527, allocations: 5.062 kB / 0.5404 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.3527, allocations: 1.094 kB / 0.5404 GB, free: 6.059 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.3532, allocations: 216.6 kB / 0.5406 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.3534, allocations: 139.5 kB / 0.5408 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/0.3535, allocations: 6.344 kB / 0.5408 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.359e-05/0.3536, allocations: 6.219 kB / 0.5408 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.3536, allocations: 16.61 kB / 0.5408 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.3537, allocations: 4.969 kB / 0.5408 GB, free: 5.754 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001065/0.3547, allocations: 0.7809 MB / 0.5416 GB, free: 5.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3547, allocations: 0 / 0.5416 GB, free: 5.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003489/0.3551, allocations: 48.83 kB / 0.5416 GB, free: 5.383 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,startTime.nextTimeEvent,startTime.nextTimeEventScaled,$whenCondition1,startTime_0.nextTimeEvent,startTime_0.nextTimeEventScaled) * Number of discrete states: 4 (startTime_0.nextTimeEventScaled,startTime_0.nextTimeEvent,startTime.nextTimeEventScaled,startTime.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * 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.001622/0.3567, allocations: 1.034 MB / 0.5426 GB, free: 4.594 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.3571, allocations: 91.02 kB / 0.5427 GB, free: 4.551 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3571, allocations: 0 / 0.5427 GB, free: 4.551 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.3572, allocations: 35.33 kB / 0.5428 GB, free: 4.539 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005815/0.3578, allocations: 80.75 kB / 0.5428 GB, free: 4.496 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006108/0.3639, allocations: 4.571 MB / 0.5473 GB, free: 252 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004818/0.3644, allocations: 0.8504 MB / 0.5481 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000176/0.3646, allocations: 58.95 kB / 0.5482 GB, free: 15.31 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000206/0.3648, allocations: 151.4 kB / 0.5483 GB, free: 15.17 MB / 414.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3649, allocations: 0 / 0.5483 GB, free: 15.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.3943, allocations: 9.084 MB / 0.5572 GB, free: 6.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.596, allocations: 21.59 kB / 0.5572 GB, free: 6.16 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70_res.csv --start-time 0 --stop-time 8000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.2 ModelicaTest_trunk_ModelicaTest_Tables_CombiTimeTable_Test70.fmu > ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test70/Test70.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Tables.CombiTimeTable.Test70.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[5115]=8000.000000 File[555]=2048.000000 " Variables in the reference:time,startTime_0.y[1],startTime.y[1] Variables in the result:time,startTime.y[1],startTime_0.y[1],startTime.offset[1],startTime.shiftTime,startTime.startTime