Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder") [: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.1+maint.om/package.mo): time 0.004286/0.004286, allocations: 172.8 kB / 7.447 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.207/1.207, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.0017/0.0017, allocations: 120.3 kB / 217.7 MB, free: 8.18 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/7.995e-06, allocations: 4 kB / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09519/0.09522, allocations: 38.76 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2793/0.3746, allocations: 72.94 MB / 373.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002638/0.3749, allocations: 72.45 kB / 373.5 MB, free: 11.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.06855/0.4435, allocations: 33.74 MB / 407.3 MB, free: 368 kB / 282.7 MB Notification: Performance of Transformations before backend: time 2.759e-05/0.4436, allocations: 12 kB / 407.3 MB, free: 356 kB / 282.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.001262/0.4448, allocations: 0.8748 MB / 408.1 MB, free: 15.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/0.4449, allocations: 16.03 kB / 408.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001501/0.4451, allocations: 82.97 kB / 408.2 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006934/0.4458, allocations: 403.6 kB / 408.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.4458, allocations: 12 kB / 408.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.638e-05/0.4459, allocations: 16 kB / 408.7 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004407/0.4463, allocations: 191.9 kB / 408.8 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004989/0.4468, allocations: 273.5 kB / 409.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.4469, allocations: 0 / 409.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/0.4469, allocations: 4 kB / 409.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4469, allocations: 4 kB / 409.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.4485, allocations: 0.8557 MB / 410 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003814/0.4489, allocations: 206.5 kB / 410.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.4491, allocations: 144.8 kB / 410.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.789e-05/0.4491, allocations: 3.984 kB / 410.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003918/0.4495, allocations: 335.2 kB / 410.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.4495, allocations: 0 / 410.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006895/0.4502, allocations: 365.2 kB / 411 MB, free: 12.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.793e-05/0.4503, allocations: 174.2 kB / 411.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001146/0.4515, allocations: 0.8432 MB / 412 MB, free: 11.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/0.4516, allocations: 33.8 kB / 412.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.454e-05/0.4517, allocations: 129.7 kB / 412.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.531e-05/0.4518, allocations: 51.36 kB / 412.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.4518, allocations: 4 kB / 412.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.4519, allocations: 338.8 kB / 412.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002003/0.4521, allocations: 119.9 kB / 412.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.4524, allocations: 150.5 kB / 412.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001697/0.4526, allocations: 91.97 kB / 412.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.4526, allocations: 0 / 412.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005801/0.4532, allocations: 341 kB / 413.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.4532, allocations: 7.984 kB / 413.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.4532, allocations: 0 / 413.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.4532, allocations: 0 / 413.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.465e-05/0.4533, allocations: 12 kB / 413.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.4533, allocations: 4 kB / 413.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.4537, allocations: 35.88 kB / 413.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.4538, allocations: 115.8 kB / 413.4 MB, free: 9.895 MB / 298.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.0003302/0.4542, allocations: 266.4 kB / 413.7 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.4543, allocations: 79.06 kB / 413.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003175/0.4546, allocations: 130.2 kB / 413.9 MB, free: 9.391 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.4546, allocations: 4 kB / 413.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4546, allocations: 0 / 413.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.4547, allocations: 0 / 413.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008657/0.4555, allocations: 0.5795 MB / 414.5 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4555, allocations: 0 / 414.5 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.919e-05/0.4556, allocations: 15.98 kB / 414.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.4556, allocations: 0 / 414.5 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/0.4557, allocations: 32.11 kB / 414.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.201e-05/0.4557, allocations: 4 kB / 414.5 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.027e-05/0.4557, allocations: 0 / 414.5 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006845/0.4564, allocations: 431.7 kB / 414.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007476/0.4572, allocations: 0.5035 MB / 415.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.4573, allocations: 20 kB / 415.5 MB, free: 7.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.4576, allocations: 31.91 kB / 415.5 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001744/0.4577, allocations: 51.86 kB / 415.5 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/0.4579, allocations: 119.9 kB / 415.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of sort global known variables: time 0.0009751/0.4589, allocations: 0.69 MB / 416.4 MB, free: 6.848 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003866/0.4593, allocations: 72 kB / 416.4 MB, free: 6.777 MB / 298.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.0002561/0.4595, allocations: 142.7 kB / 416.6 MB, free: 6.629 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006908/0.4602, allocations: 422.7 kB / 417 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4602, allocations: 0 / 417 MB, free: 6.191 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004601/0.4607, allocations: 418.8 kB / 417.4 MB, free: 5.758 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007639/0.4615, allocations: 165.2 kB / 417.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002049/0.4635, allocations: 1.066 MB / 418.6 MB, free: 4.492 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001153/0.4647, allocations: 1.146 MB / 419.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of SimCode: time 9.12e-07/0.4647, allocations: 0 / 419.8 MB, free: 3.316 MB / 298.7 MB Notification: Performance of Templates: time 0.01165/0.4764, allocations: 7.271 MB / 427 MB, free: 11.98 MB / 314.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)