Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.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.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 118.8 kB / 17.78 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.001208/0.001209, allocations: 202 kB / 18.74 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.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3595, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004169/0.3637, allocations: 2.336 MB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00335/0.367, allocations: 1.686 MB / 0.5344 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003393/0.3674, allocations: 8.062 kB / 0.5344 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005149/0.368, allocations: 144.7 kB / 0.5346 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008046/0.3688, allocations: 292.9 kB / 0.5349 GB, free: 9.945 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.3703, allocations: 0.5245 MB / 0.5354 GB, free: 9.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008678/0.3712, allocations: 0.564 MB / 0.5359 GB, free: 9.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.3714, allocations: 77.66 kB / 0.536 GB, free: 9.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004005/0.3718, allocations: 229.7 kB / 0.5362 GB, free: 9.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003345/0.3721, allocations: 232.1 kB / 0.5364 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.736e-05/0.3722, allocations: 26.81 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003985/0.3726, allocations: 176.8 kB / 0.5366 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001657/0.3728, allocations: 137.1 kB / 0.5368 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.373, allocations: 206.4 kB / 0.537 GB, free: 8.602 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008498/0.3739, allocations: 0.5988 MB / 0.5375 GB, free: 8.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.3739, allocations: 5.188 kB / 0.5375 GB, free: 8.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3739, allocations: 0 / 0.5375 GB, free: 8.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.3739, allocations: 0 / 0.5375 GB, free: 8.188 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001599/0.3755, allocations: 0.9304 MB / 0.5385 GB, free: 7.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.3756, allocations: 9.25 kB / 0.5385 GB, free: 7.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.563e-05/0.3756, allocations: 51.14 kB / 0.5385 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.3758, allocations: 59.56 kB / 0.5386 GB, free: 7.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008613/0.3767, allocations: 480.2 kB / 0.539 GB, free: 6.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.3767, allocations: 11.48 kB / 0.539 GB, free: 6.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.665e-05/0.3768, allocations: 16.75 kB / 0.5391 GB, free: 6.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005335/0.3773, allocations: 270.4 kB / 0.5393 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.3774, allocations: 0 / 0.5393 GB, free: 6.594 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.3774, allocations: 10.83 kB / 0.5393 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.3774, allocations: 2.812 kB / 0.5393 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003248/0.3777, allocations: 106.2 kB / 0.5394 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.379, allocations: 0.8825 MB / 0.5403 GB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007251/0.3798, allocations: 300.5 kB / 0.5406 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000244/0.38, allocations: 111.3 kB / 0.5407 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.3801, allocations: 8.859 kB / 0.5407 GB, free: 5.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004575/0.3806, allocations: 222.2 kB / 0.5409 GB, free: 5.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.114e-06/0.3806, allocations: 3.938 kB / 0.5409 GB, free: 5.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.001119/0.3817, allocations: 407.7 kB / 0.5413 GB, free: 5.055 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001747/0.3819, allocations: 342.4 kB / 0.5416 GB, free: 4.645 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.383, allocations: 0.6661 MB / 0.5423 GB, free: 4.285 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.505e-05/0.3831, allocations: 38.02 kB / 0.5423 GB, free: 4.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.3833, allocations: 240.9 kB / 0.5425 GB, free: 4.035 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.399e-05/0.3834, allocations: 73.89 kB / 0.5426 GB, free: 3.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.3835, allocations: 59.44 kB / 0.5427 GB, free: 3.934 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3837, allocations: 366.9 kB / 0.543 GB, free: 3.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.384, allocations: 81.48 kB / 0.5431 GB, free: 3.543 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004004/0.3844, allocations: 250.8 kB / 0.5433 GB, free: 3.312 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.3849, allocations: 229.4 kB / 0.5435 GB, free: 3.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.3849, allocations: 1.281 kB / 0.5436 GB, free: 3.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008131/0.3857, allocations: 321.6 kB / 0.5439 GB, free: 2.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3858, allocations: 10.64 kB / 0.5439 GB, free: 2.977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.3858, allocations: 6.047 kB / 0.5439 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.3858, allocations: 7.219 kB / 0.5439 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002795/0.3861, allocations: 52.75 kB / 0.5439 GB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.3861, allocations: 7.219 kB / 0.5439 GB, free: 2.953 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000304/0.3864, allocations: 27.53 kB / 0.544 GB, free: 2.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.982e-05/0.3865, allocations: 13.03 kB / 0.544 GB, free: 2.934 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * 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.0003695/0.3869, allocations: 221.9 kB / 0.5442 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.387, allocations: 62.72 kB / 0.5442 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.3872, allocations: 63.44 kB / 0.5443 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.13e-06/0.3872, allocations: 3.344 kB / 0.5443 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3872, allocations: 1.281 kB / 0.5443 GB, free: 2.684 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.3872, allocations: 5.016 kB / 0.5443 GB, free: 2.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.3877, allocations: 418 kB / 0.5447 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.3877, allocations: 1.188 kB / 0.5447 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001256/0.3878, allocations: 31.3 kB / 0.5447 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.919e-06/0.3878, allocations: 1.125 kB / 0.5447 GB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.229e-05/0.3879, allocations: 13.3 kB / 0.5448 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3879, allocations: 1.125 kB / 0.5448 GB, free: 2.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.3879, allocations: 5 kB / 0.5448 GB, free: 2.293 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007102/0.3886, allocations: 366.8 kB / 0.5451 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.3887, allocations: 127.8 kB / 0.5452 GB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.785e-05/0.3888, allocations: 17.05 kB / 0.5453 GB, free: 1.926 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.389, allocations: 15.77 kB / 0.5453 GB, free: 1.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.3891, allocations: 38.08 kB / 0.5453 GB, free: 1.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.3892, allocations: 11.5 kB / 0.5453 GB, free: 1.895 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006813/0.3899, allocations: 495.5 kB / 0.5458 GB, free: 1.543 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3899, allocations: 7.938 kB / 0.5458 GB, free: 1.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005475/0.3904, allocations: 95.88 kB / 0.5459 GB, free: 1.441 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.00209/0.3925, allocations: 1.272 MB / 0.5471 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005845/0.3931, allocations: 228 kB / 0.5473 GB, free: 60 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3931, allocations: 0 / 0.5473 GB, free: 60 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.3935, allocations: 172.1 kB / 0.5475 GB, free: 15.89 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006964/0.3942, allocations: 152.1 kB / 0.5477 GB, free: 15.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005996/0.4002, allocations: 4.286 MB / 0.5518 GB, free: 11.31 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00049/0.4008, allocations: 0.8467 MB / 0.5527 GB, free: 10.44 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003036/0.4011, allocations: 91.17 kB / 0.5528 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002909/0.4014, allocations: 175.4 kB / 0.5529 GB, free: 10.18 MB / 414.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4014, allocations: 4 kB / 0.5529 GB, free: 10.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0344/0.4358, allocations: 12.78 MB / 0.5654 GB, free: 13.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.458/8.894, allocations: 11.81 kB / 0.5654 GB, free: 13.47 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches