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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001799/0.001799, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002291/0.002291, allocations: 214.2 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.557/1.557, allocations: 230.5 MB / 257.4 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2469/0.2469, allocations: 46.92 MB / 360.8 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003099/0.003099, allocations: 83.88 kB / 0.4962 GB, free: 7.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4151, allocations: 66.07 MB / 0.5607 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.004305/0.4194, allocations: 2.353 MB / 0.563 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.4226, allocations: 1.716 MB / 0.5647 GB, free: 240 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002396/0.4228, allocations: 11.88 kB / 0.5647 GB, free: 228 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004754/0.4233, allocations: 143.2 kB / 0.5648 GB, free: 84 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006996/0.424, allocations: 290.8 kB / 0.5651 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.4254, allocations: 0.5396 MB / 0.5656 GB, free: 15.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007329/0.4262, allocations: 0.5765 MB / 0.5662 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.4263, allocations: 55.06 kB / 0.5663 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003406/0.4267, allocations: 247 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003309/0.427, allocations: 239 kB / 0.5667 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.4271, allocations: 28 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004199/0.4275, allocations: 199.8 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.4277, allocations: 139.5 kB / 0.5671 GB, free: 13.79 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002145/0.4279, allocations: 198.7 kB / 0.5673 GB, free: 13.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007667/0.4286, allocations: 0.5991 MB / 0.5678 GB, free: 12.99 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.306e-06/0.4287, allocations: 12 kB / 0.5679 GB, free: 12.98 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4287, allocations: 0 / 0.5679 GB, free: 12.98 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.4287, allocations: 0 / 0.5679 GB, free: 12.98 MB / 414.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.001336/0.43, allocations: 0.8574 MB / 0.5687 GB, free: 12.06 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.43, allocations: 8.031 kB / 0.5687 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.565e-05/0.4301, allocations: 50.73 kB / 0.5687 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.4302, allocations: 56.56 kB / 0.5688 GB, free: 11.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007578/0.431, allocations: 421.4 kB / 0.5692 GB, free: 11.51 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.837e-05/0.431, allocations: 12.61 kB / 0.5692 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.835e-05/0.431, allocations: 16.38 kB / 0.5692 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004871/0.4315, allocations: 268.9 kB / 0.5695 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.4315, allocations: 0 / 0.5695 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.4316, allocations: 7.984 kB / 0.5695 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.4316, allocations: 4 kB / 0.5695 GB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.4319, allocations: 111.8 kB / 0.5696 GB, free: 11.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.4331, allocations: 0.8592 MB / 0.5704 GB, free: 10.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007183/0.4338, allocations: 282.5 kB / 0.5707 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.4341, allocations: 103.4 kB / 0.5708 GB, free: 9.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.94e-05/0.4341, allocations: 7.984 kB / 0.5708 GB, free: 9.707 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004787/0.4346, allocations: 218.8 kB / 0.571 GB, free: 9.469 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.733e-06/0.4346, allocations: 0 / 0.571 GB, free: 9.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=24): time 0.001063/0.4357, allocations: 405 kB / 0.5714 GB, free: 9.066 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000236/0.4359, allocations: 350.1 kB / 0.5718 GB, free: 8.645 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008953/0.4368, allocations: 0.6669 MB / 0.5724 GB, free: 7.965 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.333e-05/0.4368, allocations: 37.7 kB / 0.5724 GB, free: 7.922 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/0.4371, allocations: 236.5 kB / 0.5727 GB, free: 7.688 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.806e-05/0.4372, allocations: 67.48 kB / 0.5727 GB, free: 7.621 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.4373, allocations: 61.69 kB / 0.5728 GB, free: 7.555 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.4375, allocations: 366.8 kB / 0.5731 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002369/0.4377, allocations: 83.94 kB / 0.5732 GB, free: 7.105 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003793/0.4381, allocations: 249 kB / 0.5735 GB, free: 6.801 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004856/0.4386, allocations: 227.8 kB / 0.5737 GB, free: 6.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.4386, allocations: 4 kB / 0.5737 GB, free: 6.551 MB / 414.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006952/0.4393, allocations: 321.1 kB / 0.574 GB, free: 6.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.4393, allocations: 4 kB / 0.574 GB, free: 6.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4393, allocations: 4 kB / 0.574 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.941e-05/0.4393, allocations: 4 kB / 0.574 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002775/0.4396, allocations: 59.84 kB / 0.5741 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.4396, allocations: 7.938 kB / 0.5741 GB, free: 6.152 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.4398, allocations: 27.88 kB / 0.5741 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.4398, allocations: 16.23 kB / 0.5741 GB, free: 6.109 MB / 414.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.000278/0.4401, allocations: 227.1 kB / 0.5743 GB, free: 5.879 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.457e-05/0.4402, allocations: 63.61 kB / 0.5744 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007831/0.441, allocations: 341.7 kB / 0.5747 GB, free: 5.469 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.441, allocations: 4 kB / 0.5747 GB, free: 5.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.441, allocations: 3.938 kB / 0.5747 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.441, allocations: 0 / 0.5747 GB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004726/0.4415, allocations: 400.3 kB / 0.5751 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4415, allocations: 4 kB / 0.5751 GB, free: 5.023 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.4416, allocations: 27.92 kB / 0.5751 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.4416, allocations: 4 kB / 0.5751 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.4417, allocations: 7.984 kB / 0.5751 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.4417, allocations: 8.188 kB / 0.5751 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4417, allocations: 3.938 kB / 0.5751 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007384/0.4424, allocations: 375 kB / 0.5755 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4425, allocations: 55.61 kB / 0.5756 GB, free: 4.523 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.755e-05/0.4426, allocations: 8 kB / 0.5756 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.4428, allocations: 19.97 kB / 0.5756 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.4429, allocations: 39.89 kB / 0.5756 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.174e-05/0.4429, allocations: 15.98 kB / 0.5756 GB, free: 4.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006777/0.4436, allocations: 494.8 kB / 0.5761 GB, free: 3.961 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4436, allocations: 0 / 0.5761 GB, free: 3.961 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004839/0.4441, allocations: 95.92 kB / 0.5762 GB, free: 3.867 MB / 414.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.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * 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.002828/0.4469, allocations: 1.256 MB / 0.5774 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006574/0.4476, allocations: 227.5 kB / 0.5776 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4476, allocations: 0 / 0.5776 GB, free: 2.492 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003789/0.448, allocations: 156.1 kB / 0.5778 GB, free: 2.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007552/0.4487, allocations: 155.4 kB / 0.5779 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006702/0.4554, allocations: 4.278 MB / 0.5821 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.456, allocations: 0.8506 MB / 0.5829 GB, free: 12.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002764/0.4562, allocations: 87.25 kB / 0.583 GB, free: 12.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.4565, allocations: 179.3 kB / 0.5832 GB, free: 12.62 MB / 430.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4565, allocations: 0 / 0.5832 GB, free: 12.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04788/0.5044, allocations: 13.1 MB / 0.596 GB, free: 15.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.57, allocations: 4 kB / 0.596 GB, free: 15.57 MB / 446.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --stepSize=0.000599161 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.851840632036328]