Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX") [: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.002792/0.002792, allocations: 173.8 kB / 7.446 MB, free: 2.512 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.203/1.203, allocations: 170.6 MB / 178.4 MB, free: 15.4 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.001861/0.001861, allocations: 115.8 kB / 217.7 MB, free: 8.164 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.785e-06/7.815e-06, allocations: 4 kB / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08555, allocations: 38.76 MB / 300.5 MB, free: 3.902 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2692/0.3548, allocations: 72.41 MB / 372.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/0.3552, allocations: 74.27 kB / 373 MB, free: 12 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.0846/0.4398, allocations: 42.59 MB / 415.6 MB, free: 8.031 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.073e-05/0.4399, allocations: 8 kB / 415.6 MB, free: 8.023 MB / 298.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.001645/0.4416, allocations: 0.9396 MB / 416.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.978e-05/0.4416, allocations: 8.031 kB / 416.5 MB, free: 6.977 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002962/0.4419, allocations: 75.06 kB / 416.6 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007826/0.4427, allocations: 376 kB / 417 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.641e-05/0.4428, allocations: 8 kB / 417 MB, free: 6.488 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.4429, allocations: 19.91 kB / 417 MB, free: 6.469 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000342/0.4432, allocations: 140.4 kB / 417.1 MB, free: 6.328 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.4438, allocations: 275.6 kB / 417.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.4438, allocations: 3.938 kB / 417.4 MB, free: 6.051 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.61e-05/0.4439, allocations: 8 kB / 417.4 MB, free: 6.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.4439, allocations: 4 kB / 417.4 MB, free: 6.039 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.4455, allocations: 0.7628 MB / 418.2 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.4459, allocations: 202.5 kB / 418.4 MB, free: 5.031 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002609/0.4461, allocations: 184.7 kB / 418.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.4462, allocations: 4.125 kB / 418.6 MB, free: 4.844 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004872/0.4467, allocations: 393.8 kB / 419 MB, free: 4.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.154e-06/0.4467, allocations: 4 kB / 419 MB, free: 4.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0009002/0.4476, allocations: 448.7 kB / 419.4 MB, free: 3.973 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.4478, allocations: 277 kB / 419.7 MB, free: 3.641 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.4491, allocations: 0.8039 MB / 420.5 MB, free: 2.832 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.265e-05/0.4492, allocations: 33.7 kB / 420.5 MB, free: 2.793 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.4493, allocations: 106 kB / 420.6 MB, free: 2.684 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.4494, allocations: 55.27 kB / 420.7 MB, free: 2.629 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.4496, allocations: 12 kB / 420.7 MB, free: 2.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4497, allocations: 334.8 kB / 421 MB, free: 2.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002416/0.45, allocations: 132.2 kB / 421.1 MB, free: 2.152 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002637/0.4503, allocations: 162.1 kB / 421.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.4505, allocations: 115.9 kB / 421.4 MB, free: 1.875 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.4505, allocations: 0 / 421.4 MB, free: 1.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007865/0.4513, allocations: 425 kB / 421.8 MB, free: 1.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.4514, allocations: 8 kB / 421.8 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4514, allocations: 0 / 421.8 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.4514, allocations: 4.031 kB / 421.8 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.045e-05/0.4515, allocations: 7.938 kB / 421.8 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4515, allocations: 4 kB / 421.8 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.4518, allocations: 23.89 kB / 421.9 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003074/0.4521, allocations: 259.8 kB / 422.1 MB, free: 1.152 MB / 298.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.0004802/0.4526, allocations: 386.5 kB / 422.5 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.4528, allocations: 75.16 kB / 422.6 MB, free: 0.6445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.4531, allocations: 130.8 kB / 422.7 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.4531, allocations: 7.938 kB / 422.7 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4531, allocations: 0 / 422.7 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4531, allocations: 0 / 422.7 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.4547, allocations: 0.9991 MB / 423.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4547, allocations: 4 kB / 423.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.679e-05/0.4547, allocations: 4 kB / 423.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.4547, allocations: 4 kB / 423.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.928e-05/0.4548, allocations: 47.95 kB / 423.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.4549, allocations: 0 / 423.8 MB, free: 15.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.4549, allocations: 4 kB / 423.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009342/0.4558, allocations: 0.5804 MB / 424.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007855/0.4566, allocations: 439.8 kB / 424.8 MB, free: 14.35 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001728/0.4568, allocations: 23.98 kB / 424.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003124/0.4571, allocations: 31.89 kB / 424.8 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002316/0.4573, allocations: 71.91 kB / 424.9 MB, free: 14.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003468/0.4577, allocations: 267.4 kB / 425.2 MB, free: 13.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.001154/0.4589, allocations: 0.6509 MB / 425.8 MB, free: 13.32 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005967/0.4595, allocations: 79.94 kB / 425.9 MB, free: 13.24 MB / 314.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.0003233/0.4598, allocations: 149.4 kB / 426 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.4609, allocations: 0.5563 MB / 426.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.4609, allocations: 0 / 426.6 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.4618, allocations: 0.5522 MB / 427.1 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.4629, allocations: 224.8 kB / 427.4 MB, free: 11.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.465, allocations: 1.049 MB / 428.4 MB, free: 10.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.4661, allocations: 1.041 MB / 429.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of SimCode: time 7.42e-07/0.4661, allocations: 0 / 429.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of Templates: time 0.02098/0.4871, allocations: 11.9 MB / 441.4 MB, free: 13.38 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)