Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009595/0.0009595, allocations: 175.1 kB / 8.476 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.057/1.057, allocations: 205.2 MB / 214.1 MB, free: 1.867 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008317/0.0008317, allocations: 75.42 kB / 262.1 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1293/0.1302, allocations: 52.97 MB / 315.1 MB, free: 22.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06324/0.1934, allocations: 47.59 MB / 362.6 MB, free: 7.293 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1936/0.3871, allocations: 82.79 MB / 445.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.3873, allocations: 71.41 kB / 445.5 MB, free: 12.6 MB / 330.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.06133/0.4487, allocations: 34.64 MB / 480.1 MB, free: 348 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.4487, allocations: 8 kB / 480.1 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001424/0.4489, allocations: 83.05 kB / 480.2 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005557/0.4494, allocations: 399.7 kB / 480.6 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.532e-05/0.4495, allocations: 15.98 kB / 480.6 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.467e-05/0.4495, allocations: 16 kB / 480.6 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003519/0.4499, allocations: 203.6 kB / 480.8 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004397/0.4503, allocations: 273.5 kB / 481.1 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.4504, allocations: 4 kB / 481.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.4504, allocations: 4 kB / 481.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.4504, allocations: 4 kB / 481.1 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.4517, allocations: 0.8634 MB / 482 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.452, allocations: 210.5 kB / 482.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.4522, allocations: 144.8 kB / 482.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.4523, allocations: 4 kB / 482.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.4526, allocations: 338 kB / 482.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.4526, allocations: 0 / 482.7 MB, free: 13.67 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005752/0.4532, allocations: 364.4 kB / 483 MB, free: 13.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.4533, allocations: 174.2 kB / 483.2 MB, free: 13.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009919/0.4543, allocations: 0.8432 MB / 484 MB, free: 12.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.4543, allocations: 29.7 kB / 484.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.249e-05/0.4544, allocations: 125.8 kB / 484.2 MB, free: 12.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.467e-05/0.4545, allocations: 47.42 kB / 484.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.4545, allocations: 7.984 kB / 484.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.94e-05/0.4546, allocations: 338.8 kB / 484.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.4548, allocations: 116 kB / 484.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.455, allocations: 151.5 kB / 484.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.4552, allocations: 92.05 kB / 484.9 MB, free: 11.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.4552, allocations: 3.938 kB / 484.9 MB, free: 11.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005133/0.4557, allocations: 337.2 kB / 485.3 MB, free: 10.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.4557, allocations: 8 kB / 485.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.4558, allocations: 4 kB / 485.3 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.4558, allocations: 3.938 kB / 485.3 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.257e-05/0.4558, allocations: 15.98 kB / 485.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.788e-06/0.4559, allocations: 0 / 485.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002546/0.4561, allocations: 31.89 kB / 485.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.4562, allocations: 111.9 kB / 485.4 MB, free: 10.82 MB / 362.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.000212/0.4564, allocations: 270.2 kB / 485.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.763e-05/0.4565, allocations: 75.16 kB / 485.8 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001977/0.4567, allocations: 130.2 kB / 485.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.4568, allocations: 0 / 485.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4568, allocations: 3.906 kB / 485.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.4568, allocations: 4 kB / 485.9 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006137/0.4574, allocations: 0.5834 MB / 486.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.4574, allocations: 4 kB / 486.5 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-05/0.4575, allocations: 8 kB / 486.5 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.4575, allocations: 4 kB / 486.5 MB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/0.4575, allocations: 27.89 kB / 486.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.4575, allocations: 4 kB / 486.5 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4575, allocations: 0 / 486.5 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005773/0.4581, allocations: 423.9 kB / 486.9 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006596/0.4588, allocations: 0.7972 MB / 487.7 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006416/0.4594, allocations: 0.4997 MB / 488.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.4596, allocations: 27.84 kB / 488.3 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.4598, allocations: 23.97 kB / 488.3 MB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/0.4599, allocations: 55.97 kB / 488.3 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.4601, allocations: 115.9 kB / 488.5 MB, free: 7.645 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0007739/0.4608, allocations: 0.6861 MB / 489.1 MB, free: 6.961 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008711/0.4617, allocations: 72 kB / 489.2 MB, free: 6.891 MB / 362.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.0001499/0.4619, allocations: 134.7 kB / 489.3 MB, free: 6.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005447/0.4624, allocations: 430.9 kB / 489.8 MB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.4624, allocations: 0 / 489.8 MB, free: 6.305 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000385/0.4628, allocations: 422.7 kB / 490.2 MB, free: 5.867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006333/0.4635, allocations: 168.3 kB / 490.3 MB, free: 5.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.4652, allocations: 1.07 MB / 491.4 MB, free: 4.598 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009114/0.4661, allocations: 1.138 MB / 492.6 MB, free: 3.43 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4661, allocations: 0 / 492.6 MB, free: 3.43 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)