Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009315/0.0009316, allocations: 172.8 kB / 8.517 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.263/1.263, allocations: 221.4 MB / 230.3 MB, free: 7.766 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009429/0.0009429, allocations: 92.67 kB / 281.2 MB, free: 5.516 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1947/0.1947, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.157e-05/1.197e-05, allocations: 0 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 61.91 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3594/0.4864, allocations: 89.21 MB / 0.5812 GB, free: 7.688 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002698/0.4868, allocations: 60.62 kB / 0.5813 GB, free: 7.629 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03743/0.5242, allocations: 12.82 MB / 0.5938 GB, free: 10.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.726e-05/0.5243, allocations: 8 kB / 0.5938 GB, free: 10.8 MB / 410.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.001037/0.5253, allocations: 0.7548 MB / 0.5945 GB, free: 9.973 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.5254, allocations: 11.97 kB / 0.5945 GB, free: 9.961 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001074/0.5255, allocations: 47.44 kB / 0.5946 GB, free: 9.914 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000865/0.5264, allocations: 491.2 kB / 0.595 GB, free: 9.395 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.5264, allocations: 7.906 kB / 0.5951 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.5265, allocations: 12 kB / 0.5951 GB, free: 9.375 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000254/0.5267, allocations: 100.4 kB / 0.5952 GB, free: 9.277 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.527, allocations: 245.1 kB / 0.5954 GB, free: 8.996 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.5271, allocations: 0 / 0.5954 GB, free: 8.996 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.5271, allocations: 4 kB / 0.5954 GB, free: 8.992 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.5271, allocations: 8 kB / 0.5954 GB, free: 8.984 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.5282, allocations: 0.8879 MB / 0.5963 GB, free: 8.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.5286, allocations: 263 kB / 0.5965 GB, free: 7.754 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001439/0.5287, allocations: 107.5 kB / 0.5966 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.5288, allocations: 4 kB / 0.5966 GB, free: 7.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000262/0.529, allocations: 191.6 kB / 0.5968 GB, free: 7.422 MB / 410.7 MB Notification: Performance of pre-optimization done (n=24): time 3.817e-06/0.529, allocations: 0 / 0.5968 GB, free: 7.422 MB / 410.7 MB Notification: Performance of matching and sorting (n=24): time 0.000497/0.5295, allocations: 268.9 kB / 0.5971 GB, free: 7.152 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.5297, allocations: 342.1 kB / 0.5974 GB, free: 6.738 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007016/0.5304, allocations: 0.5527 MB / 0.5979 GB, free: 6.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.728e-05/0.5304, allocations: 33.7 kB / 0.598 GB, free: 6.141 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.5305, allocations: 136.5 kB / 0.5981 GB, free: 6.004 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.494e-05/0.5306, allocations: 71.34 kB / 0.5982 GB, free: 5.934 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.246e-05/0.5306, allocations: 0 / 0.5982 GB, free: 5.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.5308, allocations: 359.8 kB / 0.5985 GB, free: 5.574 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.5309, allocations: 79.98 kB / 0.5986 GB, free: 5.496 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.5312, allocations: 241.1 kB / 0.5988 GB, free: 5.199 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.5314, allocations: 95.89 kB / 0.5989 GB, free: 5.105 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.5314, allocations: 0 / 0.5989 GB, free: 5.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004412/0.5318, allocations: 288.8 kB / 0.5992 GB, free: 4.816 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.5318, allocations: 4 kB / 0.5992 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.5319, allocations: 4 kB / 0.5992 GB, free: 4.809 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.5319, allocations: 7.984 kB / 0.5992 GB, free: 4.801 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.5322, allocations: 60.23 kB / 0.5993 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.5322, allocations: 8.125 kB / 0.5993 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.5324, allocations: 23.83 kB / 0.5993 GB, free: 4.711 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.5324, allocations: 12 kB / 0.5993 GB, free: 4.699 MB / 410.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 ($whenCondition4,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,$PRE.integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,$PRE.integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.5326, allocations: 134 kB / 0.5994 GB, free: 4.562 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.5326, allocations: 51.34 kB / 0.5995 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/0.5332, allocations: 313.3 kB / 0.5998 GB, free: 4.195 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.655e-06/0.5332, allocations: 11.84 kB / 0.5998 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.5332, allocations: 0 / 0.5998 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.5332, allocations: 3.938 kB / 0.5998 GB, free: 4.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004014/0.5337, allocations: 405.8 kB / 0.6002 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.5337, allocations: 0 / 0.6002 GB, free: 3.746 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.5338, allocations: 31.97 kB / 0.6002 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5338, allocations: 8 kB / 0.6002 GB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.5339, allocations: 4 kB / 0.6002 GB, free: 3.703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.5339, allocations: 0 / 0.6002 GB, free: 3.703 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5339, allocations: 3.938 kB / 0.6002 GB, free: 3.699 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004988/0.5344, allocations: 369.8 kB / 0.6006 GB, free: 3.289 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.5345, allocations: 160.4 kB / 0.6007 GB, free: 3.113 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.166e-05/0.5346, allocations: 4 kB / 0.6007 GB, free: 3.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.5348, allocations: 11.98 kB / 0.6007 GB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.5349, allocations: 39.95 kB / 0.6008 GB, free: 3.059 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.535, allocations: 15.98 kB / 0.6008 GB, free: 3.043 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0004882/0.5355, allocations: 438.9 kB / 0.6012 GB, free: 2.613 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004988/0.536, allocations: 115.8 kB / 0.6013 GB, free: 2.5 MB / 410.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008019/0.5368, allocations: 377.6 kB / 0.6017 GB, free: 2.203 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004113/0.5372, allocations: 235.8 kB / 0.6019 GB, free: 1.973 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5372, allocations: 256 / 0.6019 GB, free: 1.973 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002627/0.5375, allocations: 179.8 kB / 0.6021 GB, free: 1.797 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006014/0.5381, allocations: 125.7 kB / 0.6022 GB, free: 1.68 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.5393, allocations: 0.6205 MB / 0.6028 GB, free: 1.023 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005262/0.5398, allocations: 0.9054 MB / 0.6037 GB, free: 92 kB / 410.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5398, allocations: 0 / 0.6037 GB, free: 92 kB / 410.7 MB Notification: Performance of Templates: time 0.01238/0.5522, allocations: 6.723 MB / 0.6103 GB, free: 9.395 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches