Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json 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/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001209/0.001209, allocations: 199.6 kB / 8.536 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009491/0.000949, allocations: 93.03 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.312e-06/6.342e-06, allocations: 0 / 343.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1034, allocations: 51.48 MB / 394.6 MB, free: 5.215 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2907/0.3941, allocations: 78.1 MB / 472.7 MB, free: 13.46 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.3944, allocations: 64.69 kB / 472.8 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.008171/0.4026, allocations: 2.642 MB / 475.4 MB, free: 12.03 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.4026, allocations: 4 kB / 475.4 MB, free: 12.02 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.0006667/0.4033, allocations: 486.4 kB / 475.9 MB, free: 11.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4033, allocations: 8.031 kB / 475.9 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.4035, allocations: 35.19 kB / 475.9 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002511/0.4038, allocations: 234.3 kB / 476.2 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.4038, allocations: 7.422 kB / 476.2 MB, free: 11.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.4038, allocations: 15.98 kB / 476.2 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002143/0.4041, allocations: 115.8 kB / 476.3 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.4043, allocations: 169.6 kB / 476.5 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.4043, allocations: 3.938 kB / 476.5 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.999e-05/0.4044, allocations: 0 / 476.5 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.114e-05/0.4044, allocations: 15.33 kB / 476.5 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009729/0.4054, allocations: 0.7493 MB / 477.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.4058, allocations: 143.2 kB / 477.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.079e-05/0.4059, allocations: 45.97 kB / 477.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.799e-05/0.4059, allocations: 4 kB / 477.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.4061, allocations: 124.2 kB / 477.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.4061, allocations: 0 / 477.5 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003573/0.4065, allocations: 152.8 kB / 477.7 MB, free: 10.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.4065, allocations: 84.36 kB / 477.8 MB, free: 9.926 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.4067, allocations: 181.6 kB / 478 MB, free: 9.777 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.4067, allocations: 25.7 kB / 478 MB, free: 9.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.577e-05/0.4067, allocations: 130.2 kB / 478.1 MB, free: 9.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.053e-05/0.4068, allocations: 37.8 kB / 478.1 MB, free: 9.605 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.035e-05/0.4068, allocations: 0 / 478.1 MB, free: 9.605 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.605e-05/0.4069, allocations: 325.9 kB / 478.5 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.485e-05/0.407, allocations: 62.41 kB / 478.5 MB, free: 9.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.4071, allocations: 118.6 kB / 478.6 MB, free: 9.133 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.4072, allocations: 65.72 kB / 478.7 MB, free: 9.098 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4072, allocations: 0 / 478.7 MB, free: 9.098 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000278/0.4075, allocations: 197.2 kB / 478.9 MB, free: 8.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.4075, allocations: 7.906 kB / 478.9 MB, free: 8.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.4075, allocations: 4.25 kB / 478.9 MB, free: 8.934 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.4075, allocations: 8 kB / 478.9 MB, free: 8.926 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.4077, allocations: 42.53 kB / 479 MB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.256e-06/0.4077, allocations: 13.28 kB / 479 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001746/0.4079, allocations: 31.28 kB / 479 MB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.781e-05/0.408, allocations: 8 kB / 479 MB, free: 8.852 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 8.89e-05/0.408, allocations: 122.3 kB / 479.1 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.4081, allocations: 19.72 kB / 479.1 MB, free: 8.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.4083, allocations: 115.6 kB / 479.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.4083, allocations: 0 / 479.3 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4083, allocations: 7.984 kB / 479.3 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.4084, allocations: 6.625 kB / 479.3 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005138/0.4089, allocations: 431.6 kB / 479.7 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4089, allocations: 0 / 479.7 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/0.409, allocations: 30.53 kB / 479.7 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.409, allocations: 7.422 kB / 479.7 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.409, allocations: 2.438 kB / 479.7 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4091, allocations: 0 / 479.7 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4091, allocations: 4 kB / 479.7 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002408/0.4093, allocations: 264.7 kB / 480 MB, free: 7.988 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.4094, allocations: 96.83 kB / 480.1 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.4094, allocations: 0 / 480.1 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.4096, allocations: 22.7 kB / 480.1 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.4097, allocations: 25.86 kB / 480.1 MB, free: 7.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.4097, allocations: 7.188 kB / 480.1 MB, free: 7.844 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.822e-05/0.4098, allocations: 130 kB / 480.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003089/0.4101, allocations: 47.78 kB / 480.3 MB, free: 7.695 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.0001794/0.4103, allocations: 114.6 kB / 480.4 MB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002468/0.4105, allocations: 141.9 kB / 480.6 MB, free: 7.484 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.4105, allocations: 4 kB / 480.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000174/0.4107, allocations: 64.39 kB / 480.6 MB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.411, allocations: 18.53 kB / 480.7 MB, free: 7.426 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005586/0.4116, allocations: 241 kB / 480.9 MB, free: 7.211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.4118, allocations: 0.7645 MB / 481.7 MB, free: 6.453 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.4118, allocations: 0 / 481.7 MB, free: 6.453 MB / 346.7 MB Notification: Performance of Templates: time 0.004616/0.4165, allocations: 2.001 MB / 483.7 MB, free: 4.781 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches