Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.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.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",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.001064/0.001064, allocations: 204.4 kB / 8.543 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.117/1.117, allocations: 225.5 MB / 234.4 MB, free: 14.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009185/0.0009186, allocations: 95.53 kB / 286.4 MB, free: 12.6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09657/0.09752, allocations: 56.88 MB / 343.2 MB, free: 3.707 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.2805, allocations: 51.46 MB / 394.7 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08232/0.3629, allocations: 84.23 MB / 478.9 MB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.3631, allocations: 68.53 kB / 479 MB, free: 12.79 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.1879/0.551, allocations: 35.12 MB / 0.5021 GB, free: 97.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.5511, allocations: 7.656 kB / 0.5021 GB, free: 97.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.5512, allocations: 85.84 kB / 0.5021 GB, free: 97.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004815/0.5517, allocations: 407.1 kB / 0.5025 GB, free: 97.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.5517, allocations: 9.781 kB / 0.5025 GB, free: 97.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.5518, allocations: 13.5 kB / 0.5026 GB, free: 97.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003274/0.5521, allocations: 204.6 kB / 0.5028 GB, free: 97.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003873/0.5525, allocations: 268.6 kB / 0.503 GB, free: 97.62 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.5525, allocations: 4 kB / 0.503 GB, free: 97.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.5526, allocations: 7.656 kB / 0.503 GB, free: 97.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.5526, allocations: 0 / 0.503 GB, free: 97.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.5537, allocations: 0.86 MB / 0.5039 GB, free: 97.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.554, allocations: 207.2 kB / 0.5041 GB, free: 97.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00017/0.5542, allocations: 141.7 kB / 0.5042 GB, free: 97.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.5542, allocations: 3.906 kB / 0.5042 GB, free: 97.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.5545, allocations: 344.7 kB / 0.5045 GB, free: 97.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.5545, allocations: 0 / 0.5045 GB, free: 97.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005588/0.5551, allocations: 360.9 kB / 0.5049 GB, free: 97.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.5551, allocations: 181.6 kB / 0.505 GB, free: 96.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008345/0.556, allocations: 0.8395 MB / 0.5059 GB, free: 96.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.905e-05/0.556, allocations: 33.48 kB / 0.5059 GB, free: 96.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.532e-05/0.5561, allocations: 118.1 kB / 0.506 GB, free: 96.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.497e-05/0.5561, allocations: 51.34 kB / 0.5061 GB, free: 96.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.009e-05/0.5562, allocations: 12.38 kB / 0.5061 GB, free: 96.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.862e-05/0.5562, allocations: 339.1 kB / 0.5064 GB, free: 96.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001722/0.5564, allocations: 120.6 kB / 0.5065 GB, free: 96.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.5566, allocations: 145.5 kB / 0.5066 GB, free: 95.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001396/0.5567, allocations: 96.19 kB / 0.5067 GB, free: 95.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.5567, allocations: 0 / 0.5067 GB, free: 95.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000462/0.5572, allocations: 338.3 kB / 0.5071 GB, free: 95.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.5572, allocations: 3.938 kB / 0.5071 GB, free: 95.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.5572, allocations: 4.562 kB / 0.5071 GB, free: 95.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.5572, allocations: 3.906 kB / 0.5071 GB, free: 95.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.547e-05/0.5573, allocations: 15.19 kB / 0.5071 GB, free: 95.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.5573, allocations: 2 kB / 0.5071 GB, free: 95.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.5576, allocations: 35.12 kB / 0.5071 GB, free: 95.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.095e-05/0.5577, allocations: 113.8 kB / 0.5072 GB, free: 95.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 28 (a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.y,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,Adder.AND.G2.x,$PRE.Adder.AND.G2.y,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0001512/0.5578, allocations: 266.7 kB / 0.5075 GB, free: 95.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.338e-05/0.5579, allocations: 83.84 kB / 0.5076 GB, free: 95.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.5581, allocations: 128.6 kB / 0.5077 GB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.5581, allocations: 3.688 kB / 0.5077 GB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.5581, allocations: 0 / 0.5077 GB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5581, allocations: 0 / 0.5077 GB, free: 95.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005192/0.5586, allocations: 0.5814 MB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.5587, allocations: 7.031 kB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.718e-05/0.5587, allocations: 6.781 kB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.5587, allocations: 7.578 kB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/0.5588, allocations: 23.11 kB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.5588, allocations: 3.938 kB / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.5588, allocations: 0 / 0.5083 GB, free: 95.05 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005252/0.5593, allocations: 420.3 kB / 0.5087 GB, free: 94.86 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005361/0.5599, allocations: 0.8054 MB / 0.5095 GB, free: 94.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005409/0.5604, allocations: 0.5127 MB / 0.51 GB, free: 93.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.5605, allocations: 19.75 kB / 0.51 GB, free: 93.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.5608, allocations: 22.98 kB / 0.51 GB, free: 93.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.5609, allocations: 53.42 kB / 0.5101 GB, free: 93.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001573/0.5611, allocations: 116.7 kB / 0.5102 GB, free: 93.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008359/0.5619, allocations: 0.6858 MB / 0.5109 GB, free: 93.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009667/0.5629, allocations: 73.94 kB / 0.5109 GB, free: 93.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.XOR.G1.auxiliary_n,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,Adder.AND.G1.auxiliary_n,b.y,a.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.000161/0.563, allocations: 135.1 kB / 0.5111 GB, free: 93.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005261/0.5636, allocations: 425.8 kB / 0.5115 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.644e-06/0.5636, allocations: 0 / 0.5115 GB, free: 93.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.564, allocations: 421.4 kB / 0.5119 GB, free: 92.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006639/0.5646, allocations: 162.7 kB / 0.512 GB, free: 92.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001704/0.5663, allocations: 1.069 MB / 0.5131 GB, free: 92.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007328/0.5671, allocations: 1.14 MB / 0.5142 GB, free: 91.19 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5671, allocations: 0 / 0.5142 GB, free: 91.19 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)