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: "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.IntegerNetwork1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00109/0.00109, allocations: 196 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.5 MB / 234.4 MB, free: 3.316 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009974/0.0009975, allocations: 96.81 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1241/0.1251, allocations: 56.89 MB / 343.2 MB, free: 8.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.2337, allocations: 51.47 MB / 394.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2919/0.5256, allocations: 78.09 MB / 472.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.5259, allocations: 66.44 kB / 472.9 MB, free: 13.23 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.009509/0.5354, allocations: 3.127 MB / 476 MB, free: 11.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.5355, allocations: 12 kB / 476 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.5357, allocations: 34.91 kB / 476 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.5359, allocations: 236.8 kB / 476.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.536, allocations: 11.42 kB / 476.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.536, allocations: 8 kB / 476.3 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002245/0.5362, allocations: 109.4 kB / 476.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002546/0.5365, allocations: 170.9 kB / 476.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5365, allocations: 0 / 476.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.5365, allocations: 14.55 kB / 476.6 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.454e-05/0.5366, allocations: 8 kB / 476.6 MB, free: 10.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009625/0.5375, allocations: 0.7498 MB / 477.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/0.5379, allocations: 132.6 kB / 477.5 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.399e-05/0.538, allocations: 56.03 kB / 477.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.806e-05/0.5381, allocations: 0 / 477.5 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001623/0.5382, allocations: 132.6 kB / 477.6 MB, free: 9.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.132e-06/0.5383, allocations: 0 / 477.6 MB, free: 9.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003265/0.5386, allocations: 148.4 kB / 477.8 MB, free: 9.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.5386, allocations: 84.17 kB / 477.9 MB, free: 9.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001324/0.5388, allocations: 182.1 kB / 478 MB, free: 9.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.5388, allocations: 30.45 kB / 478.1 MB, free: 9.535 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.629e-05/0.5388, allocations: 129.2 kB / 478.2 MB, free: 9.422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.5389, allocations: 30.48 kB / 478.2 MB, free: 9.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.06e-05/0.5389, allocations: 4 kB / 478.2 MB, free: 9.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.652e-05/0.539, allocations: 331.3 kB / 478.6 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.628e-05/0.5391, allocations: 52.06 kB / 478.6 MB, free: 9.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.5392, allocations: 117.3 kB / 478.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.5393, allocations: 76.06 kB / 478.8 MB, free: 8.887 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.5393, allocations: 0 / 478.8 MB, free: 8.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003023/0.5396, allocations: 199.5 kB / 479 MB, free: 8.738 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.5396, allocations: 7.906 kB / 479 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.5397, allocations: 8.25 kB / 479 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.5397, allocations: 4 kB / 479 MB, free: 8.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.5399, allocations: 39.69 kB / 479.1 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.5399, allocations: 4 kB / 479.1 MB, free: 8.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001931/0.5401, allocations: 38.22 kB / 479.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.5401, allocations: 11.06 kB / 479.1 MB, free: 8.645 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 7.888e-05/0.5402, allocations: 122 kB / 479.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.5403, allocations: 19.72 kB / 479.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000221/0.5405, allocations: 111.5 kB / 479.3 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.5405, allocations: 0 / 479.3 MB, free: 8.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5405, allocations: 9.188 kB / 479.4 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.5405, allocations: 3.469 kB / 479.4 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005052/0.541, allocations: 440.3 kB / 479.8 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.541, allocations: 0 / 479.8 MB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.5412, allocations: 23.38 kB / 479.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.5412, allocations: 0 / 479.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.5412, allocations: 3.422 kB / 479.8 MB, free: 8.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.5412, allocations: 4 kB / 479.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.5412, allocations: 2.062 kB / 479.8 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002916/0.5415, allocations: 273.5 kB / 480.1 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003082/0.5419, allocations: 0.6284 MB / 480.7 MB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.5419, allocations: 88.92 kB / 480.8 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.5419, allocations: 4 kB / 480.8 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.5422, allocations: 30.75 kB / 480.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.391e-05/0.5422, allocations: 25.36 kB / 480.9 MB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.5423, allocations: 4 kB / 480.9 MB, free: 7.023 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.138e-05/0.5424, allocations: 134.5 kB / 481 MB, free: 6.918 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000905/0.5433, allocations: 43.59 kB / 481 MB, free: 6.879 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.0001997/0.5435, allocations: 122.7 kB / 481.2 MB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002542/0.5437, allocations: 141.3 kB / 481.3 MB, free: 6.66 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.5437, allocations: 4 kB / 481.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.5439, allocations: 62.08 kB / 481.4 MB, free: 6.613 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.5442, allocations: 29.78 kB / 481.4 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006309/0.5448, allocations: 235.5 kB / 481.6 MB, free: 6.387 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002707/0.5451, allocations: 0.7618 MB / 482.4 MB, free: 5.629 MB / 346.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5451, allocations: 0 / 482.4 MB, free: 5.629 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_IntegerNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1)