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: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) [: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.00141/0.00141, allocations: 181.6 kB / 8.129 MB, free: 2.219 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.105/1.105, allocations: 221.4 MB / 229.9 MB, free: 3.125 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.0008539/0.0008539, allocations: 104.7 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09771/0.0986, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2143/0.3129, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08164/0.3946, allocations: 77.28 MB / 464.3 MB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.3949, allocations: 71.91 kB / 464.3 MB, free: 9.434 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.008895/0.4038, allocations: 3.022 MB / 467.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.4038, allocations: 15.94 kB / 467.4 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.376e-05/0.4039, allocations: 20.72 kB / 467.4 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002765/0.4041, allocations: 242.7 kB / 467.6 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.972e-05/0.4042, allocations: 8 kB / 467.6 MB, free: 6.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/0.4042, allocations: 8.656 kB / 467.7 MB, free: 6.059 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002215/0.4044, allocations: 106.2 kB / 467.8 MB, free: 5.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002713/0.4047, allocations: 182 kB / 467.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.4047, allocations: 0 / 467.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.4048, allocations: 0 / 467.9 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.329e-05/0.4048, allocations: 11.94 kB / 467.9 MB, free: 5.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009882/0.4058, allocations: 0.7595 MB / 468.7 MB, free: 4.938 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.4061, allocations: 132 kB / 468.8 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.387e-05/0.4062, allocations: 44.84 kB / 468.9 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.733e-05/0.4063, allocations: 11.97 kB / 468.9 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.4064, allocations: 125 kB / 469 MB, free: 4.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.4065, allocations: 0 / 469 MB, free: 4.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003097/0.4068, allocations: 151.3 kB / 469.2 MB, free: 4.449 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.4068, allocations: 81.86 kB / 469.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.407, allocations: 190.7 kB / 469.4 MB, free: 4.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.407, allocations: 25.7 kB / 469.5 MB, free: 4.125 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.903e-05/0.4071, allocations: 132.2 kB / 469.6 MB, free: 3.992 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.4071, allocations: 27.62 kB / 469.6 MB, free: 3.965 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-06/0.4072, allocations: 0 / 469.6 MB, free: 3.965 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.4073, allocations: 334.8 kB / 469.9 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/0.4074, allocations: 47.98 kB / 470 MB, free: 3.582 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.4075, allocations: 125.2 kB / 470.1 MB, free: 3.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.4077, allocations: 67.84 kB / 470.2 MB, free: 3.363 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4077, allocations: 4 kB / 470.2 MB, free: 3.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003179/0.408, allocations: 197.3 kB / 470.4 MB, free: 3.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.408, allocations: 4 kB / 470.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.408, allocations: 4 kB / 470.4 MB, free: 3.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.408, allocations: 8 kB / 470.4 MB, free: 3.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000194/0.4082, allocations: 47.84 kB / 470.4 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.4083, allocations: 4.25 kB / 470.4 MB, free: 3.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.4085, allocations: 39.77 kB / 470.5 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.758e-05/0.4085, allocations: 11.98 kB / 470.5 MB, free: 3.043 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 9.262e-05/0.4086, allocations: 126.9 kB / 470.6 MB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.491e-05/0.4086, allocations: 16.62 kB / 470.6 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002166/0.4089, allocations: 118.9 kB / 470.7 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.4089, allocations: 0 / 470.7 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.4089, allocations: 4.125 kB / 470.7 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4089, allocations: 4 kB / 470.7 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000535/0.4094, allocations: 434.9 kB / 471.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.4094, allocations: 4 kB / 471.2 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.4096, allocations: 19.92 kB / 471.2 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4096, allocations: 4 kB / 471.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.4096, allocations: 0 / 471.2 MB, free: 2.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4096, allocations: 4 kB / 471.2 MB, free: 2.262 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.4096, allocations: 4 kB / 471.2 MB, free: 2.258 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002831/0.4099, allocations: 261.7 kB / 471.5 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003967/0.4103, allocations: 0.642 MB / 472.1 MB, free: 1.309 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.209e-05/0.4104, allocations: 88.92 kB / 472.2 MB, free: 1.203 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.4104, allocations: 4 kB / 472.2 MB, free: 1.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.4106, allocations: 31.97 kB / 472.2 MB, free: 1.168 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.896e-05/0.4107, allocations: 23.88 kB / 472.3 MB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.4107, allocations: 4 kB / 472.3 MB, free: 1.141 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001033/0.4108, allocations: 129.5 kB / 472.4 MB, free: 1.016 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008444/0.4117, allocations: 39.91 kB / 472.4 MB, free: 0.9766 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.0001848/0.4119, allocations: 115.3 kB / 472.5 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002658/0.4121, allocations: 143.8 kB / 472.7 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.4122, allocations: 3.938 kB / 472.7 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.4123, allocations: 71.91 kB / 472.7 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.4125, allocations: 21.94 kB / 472.8 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005957/0.4131, allocations: 240.2 kB / 473 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.4136, allocations: 0.7664 MB / 473.8 MB, free: 15.57 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4136, allocations: 0 / 473.8 MB, free: 15.57 MB / 362.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)