Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008097/0.0008097, allocations: 80.53 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000874/0.000874, allocations: 169.9 kB / 23.21 MB, free: 1.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8671/0.8671, allocations: 158.6 MB / 185 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1359/0.1359, allocations: 32.37 MB / 269.6 MB, free: 14.96 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegerTable,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 406.8 MB, free: 2.246 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.922e-05/2.091e-05, allocations: 2.281 kB / 406.8 MB, free: 2.242 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002552/0.002573, allocations: 2.169 MB / 409 MB, free: 68 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.004198, allocations: 1.422 MB / 410.4 MB, free: 14.63 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001356/0.004334, allocations: 4 kB / 410.4 MB, free: 14.63 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003568/0.004691, allocations: 143.2 kB / 410.6 MB, free: 14.49 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003302/0.005021, allocations: 234.8 kB / 410.8 MB, free: 14.26 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008857/0.005907, allocations: 0.6314 MB / 411.4 MB, free: 13.62 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000465/0.006372, allocations: 0.553 MB / 412 MB, free: 13.07 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.006509, allocations: 41.2 kB / 412 MB, free: 13.02 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002669/0.006776, allocations: 295.2 kB / 412.3 MB, free: 12.73 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.006982, allocations: 195.5 kB / 412.5 MB, free: 12.54 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.00702, allocations: 28 kB / 412.5 MB, free: 12.52 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003006/0.007321, allocations: 187.6 kB / 412.7 MB, free: 12.33 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001309/0.007452, allocations: 131.5 kB / 412.8 MB, free: 12.2 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.007565, allocations: 115.5 kB / 412.9 MB, free: 12.09 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000557/0.008122, allocations: 0.5959 MB / 413.5 MB, free: 11.49 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.008126, allocations: 3.938 kB / 413.5 MB, free: 11.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.008128, allocations: 0 / 413.5 MB, free: 11.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.008135, allocations: 0 / 413.5 MB, free: 11.49 MB / 394.7 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.001193/0.009328, allocations: 0.8148 MB / 414.4 MB, free: 10.62 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.009372, allocations: 12.03 kB / 414.4 MB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.009411, allocations: 46.73 kB / 414.4 MB, free: 10.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.009488, allocations: 52.61 kB / 414.5 MB, free: 10.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.009993, allocations: 405.7 kB / 414.9 MB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.01002, allocations: 16.59 kB / 414.9 MB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.01004, allocations: 12.38 kB / 414.9 MB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003646/0.01041, allocations: 349.1 kB / 415.2 MB, free: 9.656 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.01042, allocations: 0 / 415.2 MB, free: 9.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.01044, allocations: 7.969 kB / 415.2 MB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.01044, allocations: 4 kB / 415.2 MB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.01063, allocations: 119.9 kB / 415.4 MB, free: 9.527 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000734/0.01136, allocations: 0.8047 MB / 416.2 MB, free: 8.668 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003815/0.01174, allocations: 294.5 kB / 416.5 MB, free: 8.344 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.01187, allocations: 107.4 kB / 416.6 MB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.0119, allocations: 7.938 kB / 416.6 MB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.01218, allocations: 226.5 kB / 416.8 MB, free: 7.973 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.01218, allocations: 0 / 416.8 MB, free: 7.973 MB / 394.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005859/0.01276, allocations: 418 kB / 417.2 MB, free: 7.559 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.548e-05/0.01286, allocations: 247.2 kB / 417.4 MB, free: 7.262 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004972/0.01336, allocations: 0.6355 MB / 418.1 MB, free: 6.613 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.01338, allocations: 37.69 kB / 418.1 MB, free: 6.57 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.01351, allocations: 228.4 kB / 418.3 MB, free: 6.344 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.01356, allocations: 59.69 kB / 418.4 MB, free: 6.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.01363, allocations: 69.69 kB / 418.5 MB, free: 6.211 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.01374, allocations: 370.8 kB / 418.8 MB, free: 5.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.01387, allocations: 88.02 kB / 418.9 MB, free: 5.754 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002591/0.01413, allocations: 439.2 kB / 419.3 MB, free: 5.227 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.01441, allocations: 238.7 kB / 419.6 MB, free: 4.969 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.01441, allocations: 0 / 419.6 MB, free: 4.969 MB / 394.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003907/0.0148, allocations: 333.2 kB / 419.9 MB, free: 4.637 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.01482, allocations: 4 kB / 419.9 MB, free: 4.633 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.01483, allocations: 4 kB / 419.9 MB, free: 4.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.01484, allocations: 4 kB / 419.9 MB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.015, allocations: 55.89 kB / 420 MB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.918e-06/0.01501, allocations: 8.141 kB / 420 MB, free: 4.562 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01513, allocations: 35.77 kB / 420 MB, free: 4.527 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.01515, allocations: 19.98 kB / 420 MB, free: 4.508 MB / 394.7 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.0001746/0.01532, allocations: 209.7 kB / 420.2 MB, free: 4.293 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.01537, allocations: 59.61 kB / 420.3 MB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004717/0.01585, allocations: 373.6 kB / 420.6 MB, free: 3.863 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.01585, allocations: 7.984 kB / 420.7 MB, free: 3.855 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.01586, allocations: 4 kB / 420.7 MB, free: 3.852 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.01586, allocations: 3.938 kB / 420.7 MB, free: 3.848 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005153/0.01638, allocations: 348.4 kB / 421 MB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.01638, allocations: 0 / 421 MB, free: 3.465 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.425e-05/0.01645, allocations: 27.98 kB / 421 MB, free: 3.438 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.01646, allocations: 4 kB / 421 MB, free: 3.434 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.01647, allocations: 11.98 kB / 421 MB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.01648, allocations: 80 / 421 MB, free: 3.422 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.01648, allocations: 12.03 kB / 421.1 MB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004055/0.01689, allocations: 407.1 kB / 421.5 MB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.01694, allocations: 51.66 kB / 421.5 MB, free: 2.934 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.127e-05/0.01698, allocations: 11.98 kB / 421.5 MB, free: 2.922 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.003e-05/0.01706, allocations: 15.98 kB / 421.5 MB, free: 2.906 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.661e-05/0.01715, allocations: 43.89 kB / 421.6 MB, free: 2.863 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.396e-05/0.01717, allocations: 11.98 kB / 421.6 MB, free: 2.852 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003375/0.01751, allocations: 470.8 kB / 422 MB, free: 2.395 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01751, allocations: 3.938 kB / 422.1 MB, free: 2.391 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.01783, allocations: 103.8 kB / 422.2 MB, free: 2.289 MB / 394.7 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 (28): * Single equations (assignments): 20 * 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.001413/0.01925, allocations: 1.307 MB / 423.5 MB, free: 0.9766 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004013/0.01965, allocations: 235.7 kB / 423.7 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.01965, allocations: 0 / 423.7 MB, free: 0.7461 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.01986, allocations: 171.8 kB / 423.9 MB, free: 0.5781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.0203, allocations: 159.7 kB / 424 MB, free: 436 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00414/0.02444, allocations: 4.258 MB / 428.3 MB, free: 12.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001561/0.02459, allocations: 242 kB / 428.5 MB, free: 11.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001796/0.02477, allocations: 83.25 kB / 428.6 MB, free: 11.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.02495, allocations: 176.4 kB / 428.8 MB, free: 11.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.02495, allocations: 0 / 428.8 MB, free: 11.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02371/0.04866, allocations: 13.68 MB / 442.4 MB, free: 13.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.675/6.724, allocations: 0 / 442.4 MB, free: 13.68 MB / 426.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable_fmu --startTime=0 --stopTime=3 --stepSize=0.000599161 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_IntegerTable.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 8.768325135111809]