Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.00245/0.00245, allocations: 193.9 kB / 8.139 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.133/1.133, allocations: 194.2 MB / 202.8 MB, free: 8.648 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001734/0.001734, allocations: 118.2 kB / 247.7 MB, free: 6.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.632e-06/6.732e-06, allocations: 0 / 297.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08409/0.08411, allocations: 44.48 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2198/0.304, allocations: 77.73 MB / 419.8 MB, free: 17.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.3042, allocations: 69.77 kB / 419.9 MB, free: 17.18 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.07971/0.384, allocations: 42.13 MB / 462 MB, free: 15.18 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.322e-05/0.3841, allocations: 8 kB / 462 MB, free: 15.17 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.001171/0.3852, allocations: 0.9512 MB / 462.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3853, allocations: 8.031 kB / 463 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.3855, allocations: 79.06 kB / 463 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000631/0.3862, allocations: 379.9 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.973e-05/0.3862, allocations: 11.75 kB / 463.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.567e-05/0.3863, allocations: 16 kB / 463.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003123/0.3866, allocations: 140.4 kB / 463.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.3871, allocations: 271 kB / 463.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.3871, allocations: 0 / 463.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.719e-05/0.3872, allocations: 8 kB / 463.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.3872, allocations: 4 kB / 463.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.3888, allocations: 0.7706 MB / 464.6 MB, free: 12.37 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.3891, allocations: 194.5 kB / 464.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000265/0.3894, allocations: 180.8 kB / 465 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.843e-05/0.3894, allocations: 4 kB / 465 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004427/0.3899, allocations: 390.3 kB / 465.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.894e-06/0.3899, allocations: 0 / 465.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008269/0.3907, allocations: 451.8 kB / 465.8 MB, free: 11.12 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.3908, allocations: 281 kB / 466.1 MB, free: 10.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001167/0.392, allocations: 0.7961 MB / 466.9 MB, free: 9.984 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.741e-05/0.3921, allocations: 37.7 kB / 466.9 MB, free: 9.941 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.288e-05/0.3922, allocations: 102 kB / 467 MB, free: 9.836 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.3923, allocations: 63.27 kB / 467.1 MB, free: 9.773 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.197e-05/0.3924, allocations: 8 kB / 467.1 MB, free: 9.766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3925, allocations: 334.7 kB / 467.4 MB, free: 9.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002461/0.3928, allocations: 132.2 kB / 467.5 MB, free: 9.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002502/0.393, allocations: 158.2 kB / 467.7 MB, free: 9.141 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/0.3932, allocations: 119.9 kB / 467.8 MB, free: 9.023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3933, allocations: 3.938 kB / 467.8 MB, free: 9.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0007226/0.394, allocations: 425.8 kB / 468.2 MB, free: 8.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.394, allocations: 8 kB / 468.2 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.394, allocations: 0 / 468.2 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.394, allocations: 0 / 468.2 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.249e-05/0.3941, allocations: 4 kB / 468.2 MB, free: 8.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3941, allocations: 7.938 kB / 468.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.3944, allocations: 27.92 kB / 468.3 MB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002855/0.3947, allocations: 263.8 kB / 468.5 MB, free: 8.293 MB / 346.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.0003302/0.395, allocations: 378.3 kB / 468.9 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.3952, allocations: 79.06 kB / 469 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002323/0.3954, allocations: 122.9 kB / 469.1 MB, free: 7.668 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3954, allocations: 4 kB / 469.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.3954, allocations: 0 / 469.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3955, allocations: 4 kB / 469.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.3969, allocations: 1.008 MB / 470.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3969, allocations: 2.625 kB / 470.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.635e-05/0.3969, allocations: 8 kB / 470.1 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3969, allocations: 0 / 470.1 MB, free: 6.602 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.748e-05/0.397, allocations: 51.94 kB / 470.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.397, allocations: 0 / 470.2 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.397, allocations: 3.938 kB / 470.2 MB, free: 6.547 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008479/0.3979, allocations: 0.5844 MB / 470.8 MB, free: 5.945 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007109/0.3986, allocations: 443.7 kB / 471.2 MB, free: 5.492 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.3988, allocations: 23.98 kB / 471.2 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003022/0.3991, allocations: 23.98 kB / 471.2 MB, free: 5.445 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.3993, allocations: 71.92 kB / 471.3 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/0.3996, allocations: 267.5 kB / 471.6 MB, free: 5.113 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009479/0.4006, allocations: 0.6548 MB / 472.2 MB, free: 4.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000507/0.4011, allocations: 76 kB / 472.3 MB, free: 4.387 MB / 346.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.0002471/0.4013, allocations: 145.4 kB / 472.4 MB, free: 4.234 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007731/0.4021, allocations: 0.5561 MB / 473 MB, free: 3.629 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4021, allocations: 0 / 473 MB, free: 3.629 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006239/0.4028, allocations: 0.5483 MB / 473.6 MB, free: 3.031 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001004/0.4038, allocations: 220.1 kB / 473.8 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.4057, allocations: 1.045 MB / 474.8 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008591/0.4066, allocations: 1.049 MB / 475.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4066, allocations: 0 / 475.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of Templates: time 0.01815/0.4248, allocations: 11.91 MB / 487.8 MB, free: 4.566 MB / 362.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)