Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",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.001644/0.001644, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 225.5 MB / 234.4 MB, free: 3.426 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 94.42 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1283/0.1295, allocations: 56.89 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.2353, allocations: 51.47 MB / 394.7 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2727/0.508, allocations: 77.68 MB / 472.4 MB, free: 13.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.5083, allocations: 61.77 kB / 472.4 MB, free: 13.87 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.008481/0.5168, allocations: 3.007 MB / 475.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.5169, allocations: 8 kB / 475.5 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.517, allocations: 39.14 kB / 475.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002443/0.5173, allocations: 229.6 kB / 475.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.5173, allocations: 7.938 kB / 475.7 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.5173, allocations: 12.55 kB / 475.7 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002008/0.5175, allocations: 108.6 kB / 475.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.5178, allocations: 163.5 kB / 476 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.136e-05/0.5178, allocations: 0 / 476 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.5178, allocations: 0 / 476 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.5179, allocations: 15.47 kB / 476 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.5189, allocations: 0.748 MB / 476.8 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.5191, allocations: 136.4 kB / 476.9 MB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.117e-05/0.5192, allocations: 58.91 kB / 477 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.696e-05/0.5192, allocations: 7.156 kB / 477 MB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/0.5194, allocations: 120.6 kB / 477.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.5194, allocations: 0 / 477.1 MB, free: 10.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003527/0.5198, allocations: 161.7 kB / 477.2 MB, free: 10.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.423e-05/0.5198, allocations: 81.11 kB / 477.3 MB, free: 10.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.52, allocations: 167.4 kB / 477.5 MB, free: 10.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.52, allocations: 29.27 kB / 477.5 MB, free: 10.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.52, allocations: 124.3 kB / 477.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.198e-05/0.5201, allocations: 41.72 kB / 477.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.5201, allocations: 4 kB / 477.7 MB, free: 10.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.5202, allocations: 328.7 kB / 478 MB, free: 9.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.865e-05/0.5203, allocations: 53.03 kB / 478 MB, free: 9.711 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.5204, allocations: 107.1 kB / 478.2 MB, free: 9.609 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001313/0.5205, allocations: 74.38 kB / 478.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5205, allocations: 0 / 478.2 MB, free: 9.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003334/0.5209, allocations: 210.1 kB / 478.4 MB, free: 9.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.5209, allocations: 7.938 kB / 478.4 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.5209, allocations: 4.188 kB / 478.4 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.5209, allocations: 4 kB / 478.4 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.5212, allocations: 34.42 kB / 478.5 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.5212, allocations: 7.938 kB / 478.5 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.5214, allocations: 37.98 kB / 478.5 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.5214, allocations: 4 kB / 478.5 MB, free: 9.328 MB / 346.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.491e-05/0.5215, allocations: 108.9 kB / 478.6 MB, free: 9.219 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.092e-05/0.5216, allocations: 26.72 kB / 478.7 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003533/0.5219, allocations: 170.2 kB / 478.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.5219, allocations: 4 kB / 478.8 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.5219, allocations: 4 kB / 478.8 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.522, allocations: 3.984 kB / 478.8 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.5222, allocations: 238.2 kB / 479.1 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.5222, allocations: 0 / 479.1 MB, free: 8.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001501/0.5223, allocations: 30.75 kB / 479.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.5224, allocations: 2.953 kB / 479.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.5224, allocations: 0 / 479.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.5224, allocations: 4 kB / 479.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5224, allocations: 0 / 479.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002834/0.5227, allocations: 201.4 kB / 479.3 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003302/0.523, allocations: 0.586 MB / 479.9 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.5231, allocations: 90.7 kB / 480 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.024e-05/0.5231, allocations: 1.438 kB / 480 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.5233, allocations: 26.8 kB / 480 MB, free: 7.977 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.992e-05/0.5234, allocations: 18.89 kB / 480 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.5234, allocations: 7.125 kB / 480 MB, free: 7.961 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.066e-05/0.5235, allocations: 129.8 kB / 480.2 MB, free: 7.859 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001026/0.5246, allocations: 39.84 kB / 480.2 MB, free: 7.82 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001677/0.5247, allocations: 102.6 kB / 480.3 MB, free: 7.715 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002774/0.525, allocations: 136.8 kB / 480.4 MB, free: 7.625 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.525, allocations: 4.312 kB / 480.4 MB, free: 7.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001826/0.5252, allocations: 73.05 kB / 480.5 MB, free: 7.57 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.5256, allocations: 30.34 kB / 480.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005971/0.5262, allocations: 249.3 kB / 480.8 MB, free: 7.336 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.5265, allocations: 0.764 MB / 481.5 MB, free: 6.578 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5265, allocations: 0 / 481.5 MB, free: 6.578 MB / 346.7 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1)