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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009407/0.0009408, allocations: 166.6 kB / 7.636 MB, free: 1.418 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.211/1.211, allocations: 170.6 MB / 178.7 MB, free: 15.57 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.001799/0.001799, allocations: 103.5 kB / 218 MB, free: 8.348 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.635e-05/1.635e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0815/0.08153, allocations: 38.78 MB / 301 MB, free: 3.625 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2678/0.3494, allocations: 72.49 MB / 373.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001705/0.3496, allocations: 62.66 kB / 373.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07997/0.4296, allocations: 43.32 MB / 416.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4296, allocations: 3.938 kB / 416.9 MB, free: 6.941 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.4296, allocations: 8 kB / 416.9 MB, free: 6.934 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.0009414/0.4306, allocations: 0.9512 MB / 417.8 MB, free: 5.883 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.4306, allocations: 12.03 kB / 417.8 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.4308, allocations: 83 kB / 417.9 MB, free: 5.789 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004635/0.4312, allocations: 360.1 kB / 418.3 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.4313, allocations: 15.94 kB / 418.3 MB, free: 5.383 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.148e-05/0.4314, allocations: 16 kB / 418.3 MB, free: 5.367 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002599/0.4316, allocations: 136.4 kB / 418.4 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004031/0.432, allocations: 271 kB / 418.7 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.4321, allocations: 0 / 418.7 MB, free: 4.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.091e-05/0.4321, allocations: 12 kB / 418.7 MB, free: 4.949 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.4321, allocations: 3.953 kB / 418.7 MB, free: 4.945 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.4333, allocations: 0.7239 MB / 419.4 MB, free: 4.184 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002771/0.4336, allocations: 202.5 kB / 419.6 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002405/0.4338, allocations: 180.8 kB / 419.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.4339, allocations: 7.984 kB / 419.8 MB, free: 3.789 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004892/0.4344, allocations: 422.6 kB / 420.2 MB, free: 3.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.884e-06/0.4344, allocations: 0 / 420.2 MB, free: 3.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.001051/0.4354, allocations: 0.6181 MB / 420.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.4356, allocations: 277 kB / 421.1 MB, free: 2.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.4367, allocations: 0.8 MB / 421.9 MB, free: 1.574 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.228e-05/0.4368, allocations: 33.7 kB / 422 MB, free: 1.535 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.819e-05/0.4369, allocations: 126 kB / 422.1 MB, free: 1.406 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.145e-05/0.437, allocations: 63.27 kB / 422.1 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.437, allocations: 4 kB / 422.1 MB, free: 1.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.4372, allocations: 338.8 kB / 422.5 MB, free: 1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.4374, allocations: 128.2 kB / 422.6 MB, free: 0.875 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000211/0.4376, allocations: 154.2 kB / 422.7 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.4379, allocations: 119.9 kB / 422.9 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.4379, allocations: 4 kB / 422.9 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00084/0.4387, allocations: 0.5712 MB / 423.4 MB, free: 20 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.4389, allocations: 249.6 kB / 423.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.4389, allocations: 0 / 423.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.4389, allocations: 0 / 423.7 MB, free: 15.73 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.108e-05/0.439, allocations: 11.94 kB / 423.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.439, allocations: 7.984 kB / 423.7 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.4393, allocations: 27.92 kB / 423.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/0.4395, allocations: 263.8 kB / 424 MB, free: 15.42 MB / 314.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.0003154/0.4399, allocations: 379.8 kB / 424.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.44, allocations: 87.05 kB / 424.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001935/0.4402, allocations: 123.3 kB / 424.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.4402, allocations: 7.938 kB / 424.6 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.4402, allocations: 0 / 424.6 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.4402, allocations: 0 / 424.6 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.4418, allocations: 1.186 MB / 425.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.4418, allocations: 0 / 425.8 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.585e-05/0.4418, allocations: 4 kB / 425.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.4418, allocations: 7.953 kB / 425.8 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.726e-05/0.4419, allocations: 43.97 kB / 425.8 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.8e-06/0.4419, allocations: 7.984 kB / 425.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4419, allocations: 0 / 425.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000989/0.4429, allocations: 0.7531 MB / 426.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005856/0.4435, allocations: 447.5 kB / 427 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.4437, allocations: 23.95 kB / 427 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.4439, allocations: 23.98 kB / 427.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001919/0.4441, allocations: 75.91 kB / 427.1 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002733/0.4444, allocations: 263.6 kB / 427.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008087/0.4452, allocations: 0.647 MB / 428 MB, free: 11.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4452, allocations: 0 / 428 MB, free: 11.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004138/0.4457, allocations: 88 kB / 428.1 MB, free: 11.15 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.0002234/0.4459, allocations: 145.5 kB / 428.3 MB, free: 11 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008723/0.4468, allocations: 0.8781 MB / 429.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4468, allocations: 0 / 429.1 MB, free: 10.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005408/0.4473, allocations: 0.7491 MB / 429.9 MB, free: 9.176 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009805/0.4483, allocations: 232.2 kB / 430.1 MB, free: 8.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.45, allocations: 1.055 MB / 431.2 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005853/0.4506, allocations: 0.9557 MB / 432.1 MB, free: 6.879 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.4509, allocations: 93.06 kB / 432.2 MB, free: 6.785 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.79e-05/0.451, allocations: 47.3 kB / 432.3 MB, free: 6.738 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.451, allocations: 4 kB / 432.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of Templates: time 0.01622/0.4672, allocations: 11.6 MB / 443.9 MB, free: 10.94 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)