Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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) 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(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [: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.001343/0.001343, allocations: 185 kB / 8.139 MB, free: 2.18 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.179/1.179, allocations: 221.4 MB / 229.9 MB, free: 3.062 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.0008999/0.0008999, allocations: 91.02 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.905e-06/7.945e-06, allocations: 4 kB / 336.5 MB, free: 9.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.1879, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08065/0.2686, allocations: 77.28 MB / 464.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/0.2688, allocations: 67.97 kB / 464.2 MB, free: 9.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.008091/0.2769, allocations: 2.539 MB / 466.8 MB, free: 6.961 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.2769, allocations: 8 kB / 466.8 MB, free: 6.953 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.000665/0.2776, allocations: 483.6 kB / 467.3 MB, free: 6.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.2776, allocations: 9.344 kB / 467.3 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.02e-05/0.2777, allocations: 23.72 kB / 467.3 MB, free: 6.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.278, allocations: 242.7 kB / 467.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.278, allocations: 4 kB / 467.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.278, allocations: 12 kB / 467.6 MB, free: 6.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002274/0.2783, allocations: 110.1 kB / 467.7 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.2785, allocations: 178 kB / 467.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2786, allocations: 0 / 467.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2786, allocations: 0 / 467.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.2786, allocations: 11.92 kB / 467.8 MB, free: 5.797 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000979/0.2796, allocations: 0.76 MB / 468.6 MB, free: 4.988 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.28, allocations: 134.7 kB / 468.7 MB, free: 4.848 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001014/0.2801, allocations: 45.88 kB / 468.8 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.006e-05/0.2801, allocations: 8.203 kB / 468.8 MB, free: 4.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001852/0.2803, allocations: 128.9 kB / 468.9 MB, free: 4.648 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.2803, allocations: 0 / 468.9 MB, free: 4.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003705/0.2807, allocations: 149.4 kB / 469.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.639e-05/0.2808, allocations: 87.02 kB / 469.1 MB, free: 4.395 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001975/0.281, allocations: 190.8 kB / 469.3 MB, free: 4.199 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.281, allocations: 25.7 kB / 469.4 MB, free: 4.168 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.913e-05/0.2811, allocations: 128.2 kB / 469.5 MB, free: 4.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.2811, allocations: 31.61 kB / 469.5 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.949e-06/0.2812, allocations: 0 / 469.5 MB, free: 4.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2813, allocations: 326.8 kB / 469.8 MB, free: 3.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.294e-05/0.2814, allocations: 55.92 kB / 469.9 MB, free: 3.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.2815, allocations: 124.5 kB / 470 MB, free: 3.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000141/0.2817, allocations: 68.83 kB / 470.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.2817, allocations: 0 / 470.1 MB, free: 3.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000328/0.282, allocations: 201.3 kB / 470.3 MB, free: 3.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.282, allocations: 4 kB / 470.3 MB, free: 3.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2821, allocations: 4 kB / 470.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2821, allocations: 7.906 kB / 470.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.2823, allocations: 39.92 kB / 470.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.2823, allocations: 12.86 kB / 470.3 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.2825, allocations: 36.08 kB / 470.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.2825, allocations: 8 kB / 470.4 MB, free: 3.094 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001064/0.2827, allocations: 122.9 kB / 470.5 MB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.056e-05/0.2827, allocations: 20.36 kB / 470.5 MB, free: 2.945 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002393/0.2829, allocations: 124 kB / 470.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2829, allocations: 0 / 470.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.283, allocations: 0 / 470.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.283, allocations: 0 / 470.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005624/0.2835, allocations: 435 kB / 471.1 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2836, allocations: 96 / 471.1 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001305/0.2837, allocations: 31.84 kB / 471.1 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.2837, allocations: 7.938 kB / 471.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.2837, allocations: 0 / 471.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2837, allocations: 0 / 471.1 MB, free: 2.309 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2837, allocations: 8 kB / 471.1 MB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002761/0.284, allocations: 260.4 kB / 471.4 MB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.2841, allocations: 92.92 kB / 471.5 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.2841, allocations: 7.891 kB / 471.5 MB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.2843, allocations: 27.92 kB / 471.5 MB, free: 1.879 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.075e-05/0.2844, allocations: 19.97 kB / 471.5 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.2844, allocations: 7.984 kB / 471.5 MB, free: 1.852 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.356e-05/0.2845, allocations: 125.6 kB / 471.6 MB, free: 1.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000313/0.2848, allocations: 47.84 kB / 471.7 MB, free: 1.684 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001476/0.285, allocations: 111.2 kB / 471.8 MB, free: 1.566 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.2852, allocations: 139.1 kB / 471.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2852, allocations: 0 / 471.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.2854, allocations: 75.91 kB / 472 MB, free: 1.359 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.2856, allocations: 19.61 kB / 472 MB, free: 1.344 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005501/0.2862, allocations: 255 kB / 472.3 MB, free: 1.07 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003193/0.2865, allocations: 0.7586 MB / 473 MB, free: 292 kB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2865, allocations: 0 / 473 MB, free: 292 kB / 346.7 MB Notification: Performance of Templates: time 0.004575/0.2911, allocations: 1.993 MB / 475 MB, free: 14.32 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches