Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX",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.001093/0.001093, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.157/1.157, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008691/0.0008691, allocations: 89.78 kB / 286.3 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08976/0.09066, allocations: 56.9 MB / 343.2 MB, free: 8.641 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.1735, allocations: 51.47 MB / 394.7 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2105/0.3841, allocations: 83.71 MB / 478.4 MB, free: 9.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001866/0.3843, allocations: 72.55 kB / 478.5 MB, free: 9.133 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.07826/0.4626, allocations: 43.7 MB / 0.5099 GB, free: 3.527 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.4626, allocations: 16 kB / 0.51 GB, free: 3.512 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.4628, allocations: 75.09 kB / 0.51 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005196/0.4633, allocations: 379.9 kB / 0.5104 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.4633, allocations: 8 kB / 0.5104 GB, free: 3.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.243e-05/0.4634, allocations: 16 kB / 0.5104 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002829/0.4637, allocations: 136.4 kB / 0.5105 GB, free: 2.867 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/0.4642, allocations: 280.1 kB / 0.5108 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.4642, allocations: 0 / 0.5108 GB, free: 2.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.4642, allocations: 15.94 kB / 0.5108 GB, free: 2.574 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4642, allocations: 0 / 0.5108 GB, free: 2.574 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.4655, allocations: 0.7589 MB / 0.5116 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.4658, allocations: 210.4 kB / 0.5118 GB, free: 1.559 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002397/0.4661, allocations: 172.8 kB / 0.5119 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.4661, allocations: 0 / 0.5119 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004038/0.4665, allocations: 393.9 kB / 0.5123 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.753e-06/0.4665, allocations: 4.688 kB / 0.5123 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007699/0.4673, allocations: 443.6 kB / 0.5127 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.4674, allocations: 281 kB / 0.513 GB, free: 192 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009701/0.4684, allocations: 0.8039 MB / 0.5138 GB, free: 15.38 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.4685, allocations: 33.7 kB / 0.5138 GB, free: 15.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.4685, allocations: 102 kB / 0.5139 GB, free: 15.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/0.4686, allocations: 63.27 kB / 0.514 GB, free: 15.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.4687, allocations: 7.984 kB / 0.514 GB, free: 15.16 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.4688, allocations: 333 kB / 0.5143 GB, free: 14.83 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002279/0.469, allocations: 136.2 kB / 0.5144 GB, free: 14.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.4693, allocations: 166.2 kB / 0.5146 GB, free: 14.53 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002155/0.4695, allocations: 119.8 kB / 0.5147 GB, free: 14.41 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4695, allocations: 0 / 0.5147 GB, free: 14.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006603/0.4702, allocations: 416 kB / 0.5151 GB, free: 14 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.4702, allocations: 4 kB / 0.5151 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.4702, allocations: 4 kB / 0.5151 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.4702, allocations: 4 kB / 0.5151 GB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.989e-05/0.4702, allocations: 7.938 kB / 0.5151 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.4703, allocations: 0 / 0.5151 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.4705, allocations: 35.91 kB / 0.5152 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002298/0.4708, allocations: 259.8 kB / 0.5154 GB, free: 13.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0002638/0.471, allocations: 382.5 kB / 0.5158 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.755e-05/0.4711, allocations: 79.06 kB / 0.5158 GB, free: 13.19 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001958/0.4713, allocations: 126.9 kB / 0.516 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.4713, allocations: 0 / 0.516 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4714, allocations: 4 kB / 0.516 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.443e-06/0.4714, allocations: 7.938 kB / 0.516 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001246/0.4726, allocations: 0.9973 MB / 0.517 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4726, allocations: 0 / 0.517 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.523e-05/0.4726, allocations: 4 kB / 0.517 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.4727, allocations: 3.984 kB / 0.517 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.381e-05/0.4727, allocations: 51.25 kB / 0.517 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.4728, allocations: 0 / 0.517 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.4728, allocations: 7.906 kB / 0.517 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000761/0.4735, allocations: 0.5806 MB / 0.5176 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008579/0.4744, allocations: 0.9559 MB / 0.5185 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/0.475, allocations: 439.7 kB / 0.5189 GB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.4752, allocations: 20 kB / 0.519 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.4755, allocations: 35.97 kB / 0.519 GB, free: 9.867 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/0.4756, allocations: 63.92 kB / 0.519 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002386/0.4759, allocations: 271.5 kB / 0.5193 GB, free: 9.539 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007513/0.4766, allocations: 0.6626 MB / 0.52 GB, free: 8.879 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009318/0.4776, allocations: 79.91 kB / 0.52 GB, free: 8.801 MB / 394.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.000178/0.4778, allocations: 137.5 kB / 0.5202 GB, free: 8.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.4785, allocations: 0.5639 MB / 0.5207 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4785, allocations: 0 / 0.5207 GB, free: 8.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005248/0.479, allocations: 0.5401 MB / 0.5212 GB, free: 7.461 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008498/0.4799, allocations: 216.5 kB / 0.5214 GB, free: 7.254 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/0.4816, allocations: 1.049 MB / 0.5225 GB, free: 6.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007572/0.4823, allocations: 1.049 MB / 0.5235 GB, free: 5.086 MB / 394.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4823, allocations: 0 / 0.5235 GB, free: 5.086 MB / 394.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)