Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 181 kB / 8.132 MB, free: 2.133 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.101/1.101, allocations: 221.4 MB / 230 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009152/0.0009152, allocations: 97.8 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09051/0.09145, allocations: 55.82 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.181/0.2725, allocations: 50.39 MB / 387 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08486/0.3574, allocations: 83.42 MB / 470.4 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.3576, allocations: 71.95 kB / 470.5 MB, free: 3.246 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.06699/0.4246, allocations: 35.07 MB / 0.4937 GB, free: 236 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.256e-05/0.4247, allocations: 8 kB / 0.4937 GB, free: 228 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.4248, allocations: 83.06 kB / 0.4938 GB, free: 144 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1305/0.5553, allocations: 404.3 kB / 0.4942 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.443e-05/0.5554, allocations: 12.02 kB / 0.4942 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-05/0.5555, allocations: 20.06 kB / 0.4942 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004029/0.5559, allocations: 195.5 kB / 0.4944 GB, free: 76.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00044/0.5564, allocations: 272.2 kB / 0.4947 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5564, allocations: 0.75 kB / 0.4947 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.404e-05/0.5565, allocations: 9.562 kB / 0.4947 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.5565, allocations: 5.438 kB / 0.4947 GB, free: 76.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.5579, allocations: 0.8527 MB / 0.4955 GB, free: 75.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.5582, allocations: 210.1 kB / 0.4957 GB, free: 75.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.5584, allocations: 148.4 kB / 0.4958 GB, free: 75.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.5584, allocations: 0 / 0.4958 GB, free: 75.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.5587, allocations: 341.1 kB / 0.4962 GB, free: 75.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/0.5587, allocations: 0 / 0.4962 GB, free: 75.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005631/0.5593, allocations: 359.3 kB / 0.4965 GB, free: 75.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.316e-05/0.5594, allocations: 172.6 kB / 0.4967 GB, free: 75.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009756/0.5603, allocations: 0.8438 MB / 0.4975 GB, free: 75.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/0.5604, allocations: 40.67 kB / 0.4975 GB, free: 75.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.482e-05/0.5604, allocations: 120.7 kB / 0.4977 GB, free: 74.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.915e-05/0.5605, allocations: 53.52 kB / 0.4977 GB, free: 74.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.5605, allocations: 3.969 kB / 0.4977 GB, free: 74.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.052e-05/0.5606, allocations: 336.5 kB / 0.498 GB, free: 74.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001657/0.5608, allocations: 119 kB / 0.4981 GB, free: 74.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.561, allocations: 137.3 kB / 0.4983 GB, free: 74.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.5611, allocations: 98.95 kB / 0.4984 GB, free: 74.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.5611, allocations: 3.906 kB / 0.4984 GB, free: 74.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004568/0.5616, allocations: 334.5 kB / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.5616, allocations: 8.938 kB / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.5616, allocations: 0 / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.5616, allocations: 6.453 kB / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.851e-05/0.5617, allocations: 17.16 kB / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.5617, allocations: 0 / 0.4987 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.562, allocations: 29.28 kB / 0.4988 GB, free: 74.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.803e-05/0.5621, allocations: 117.2 kB / 0.4989 GB, free: 74.54 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.0001632/0.5623, allocations: 270.5 kB / 0.4991 GB, free: 74.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.739e-05/0.5623, allocations: 77 kB / 0.4992 GB, free: 74.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.5625, allocations: 127.5 kB / 0.4993 GB, free: 74.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.5625, allocations: 3.656 kB / 0.4993 GB, free: 74.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.5626, allocations: 5.031 kB / 0.4993 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5626, allocations: 0 / 0.4993 GB, free: 74.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005258/0.5631, allocations: 0.5795 MB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5631, allocations: 0.6562 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.447e-05/0.5632, allocations: 11.06 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.5632, allocations: 1.25 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.5632, allocations: 31.55 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.5632, allocations: 3.625 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.5632, allocations: 4.25 kB / 0.4999 GB, free: 73.96 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005047/0.5637, allocations: 424.2 kB / 0.5003 GB, free: 73.85 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005177/0.5643, allocations: 0.7962 MB / 0.5011 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005542/0.5648, allocations: 0.5089 MB / 0.5016 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.5649, allocations: 22.03 kB / 0.5016 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.5652, allocations: 33.33 kB / 0.5017 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001392/0.5653, allocations: 53.28 kB / 0.5017 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/0.5654, allocations: 119.3 kB / 0.5018 GB, free: 73.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006777/0.5661, allocations: 0.6819 MB / 0.5025 GB, free: 72.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008688/0.567, allocations: 75.09 kB / 0.5026 GB, free: 72.97 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.0001579/0.5671, allocations: 137.8 kB / 0.5027 GB, free: 72.88 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004843/0.5676, allocations: 429.8 kB / 0.5031 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5676, allocations: 0 / 0.5031 GB, free: 72.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003252/0.568, allocations: 421.7 kB / 0.5035 GB, free: 72.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006328/0.5686, allocations: 164.2 kB / 0.5037 GB, free: 72.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.5701, allocations: 1.062 MB / 0.5047 GB, free: 72.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007364/0.5709, allocations: 1.139 MB / 0.5058 GB, free: 71.37 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5709, allocations: 4 kB / 0.5058 GB, free: 71.37 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1)