Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX") translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 100.3 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002132/0.002132, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004351, allocations: 11.98 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3178, allocations: 47.58 MB / 326.4 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002106/0.32, allocations: 1.455 MB / 327.9 MB, free: 316 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.3223, allocations: 0.9458 MB / 328.8 MB, free: 15.61 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.755e-05/0.3224, allocations: 5 kB / 328.8 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.3225, allocations: 12.95 kB / 328.9 MB, free: 15.59 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.3227, allocations: 36.12 kB / 328.9 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004912/0.3232, allocations: 70.91 kB / 329 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003218/0.3235, allocations: 151.8 kB / 329.1 MB, free: 15.41 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.3237, allocations: 42.38 kB / 329.2 MB, free: 15.39 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.3248, allocations: 0.5223 MB / 329.7 MB, free: 15.17 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.3251, allocations: 157.7 kB / 329.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.474e-05/0.3252, allocations: 7.625 kB / 329.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.187e-05/0.3252, allocations: 7.656 kB / 329.8 MB, free: 15.11 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.3254, allocations: 135 kB / 330 MB, free: 15.04 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.3256, allocations: 120.8 kB / 330.1 MB, free: 14.95 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007974/0.3264, allocations: 0.5952 MB / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3265, allocations: 1 kB / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.3265, allocations: 0 / 330.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.3265, allocations: 0 / 330.7 MB, free: 14.5 MB / 270.1 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.001573/0.3281, allocations: 1.043 MB / 331.7 MB, free: 13.5 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.3281, allocations: 9.531 kB / 331.7 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.3283, allocations: 77.44 kB / 331.8 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006866/0.329, allocations: 370.7 kB / 332.2 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.934e-05/0.3291, allocations: 15.03 kB / 332.2 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.3292, allocations: 23.25 kB / 332.2 MB, free: 13.12 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/0.3298, allocations: 242.7 kB / 332.5 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.3298, allocations: 1.094 kB / 332.5 MB, free: 12.99 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.614e-05/0.3299, allocations: 10.78 kB / 332.5 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.445e-06/0.3299, allocations: 2.219 kB / 332.5 MB, free: 12.98 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003305/0.3302, allocations: 138.7 kB / 332.6 MB, free: 12.93 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001636/0.3319, allocations: 0.7288 MB / 333.3 MB, free: 12.35 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.3323, allocations: 199.6 kB / 333.5 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.336e-05/0.3323, allocations: 3.984 kB / 333.5 MB, free: 12.21 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006303/0.333, allocations: 397.9 kB / 333.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 2.675e-06/0.333, allocations: 0 / 333.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.002013/0.335, allocations: 1.249 MB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002393/0.3353, allocations: 281 kB / 335.4 MB, free: 10.07 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.3369, allocations: 0.953 MB / 336.4 MB, free: 9.109 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.274e-05/0.337, allocations: 33.7 kB / 336.4 MB, free: 9.07 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001584/0.3372, allocations: 126 kB / 336.6 MB, free: 8.941 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.661e-05/0.3373, allocations: 67.19 kB / 336.6 MB, free: 8.875 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.231e-05/0.3373, allocations: 12 kB / 336.6 MB, free: 8.863 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.3376, allocations: 334.8 kB / 337 MB, free: 8.527 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.3378, allocations: 124.2 kB / 337.1 MB, free: 8.406 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003277/0.3382, allocations: 159.9 kB / 337.2 MB, free: 8.238 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.3386, allocations: 341.5 kB / 337.6 MB, free: 7.855 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3386, allocations: 0 / 337.6 MB, free: 7.855 MB / 270.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001243/0.3399, allocations: 0.7603 MB / 338.3 MB, free: 7.039 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002142/0.3401, allocations: 245.6 kB / 338.6 MB, free: 6.75 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.3401, allocations: 4 kB / 338.6 MB, free: 6.746 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.3402, allocations: 0 / 338.6 MB, free: 6.746 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.517e-05/0.3402, allocations: 4 kB / 338.6 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3402, allocations: 7.953 kB / 338.6 MB, free: 6.734 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.3407, allocations: 31.92 kB / 338.6 MB, free: 6.703 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.3409, allocations: 116.2 kB / 338.7 MB, free: 6.59 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,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,$PRE.bUF3S1.inertialDelaySensitive.x,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.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked 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.001168/0.3421, allocations: 0.6046 MB / 339.3 MB, free: 5.926 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.3422, allocations: 75.16 kB / 339.4 MB, free: 5.852 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002851/0.3425, allocations: 134.8 kB / 339.5 MB, free: 5.715 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.3425, allocations: 4 kB / 339.5 MB, free: 5.711 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.3426, allocations: 0 / 339.5 MB, free: 5.711 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3426, allocations: 3.953 kB / 339.5 MB, free: 5.707 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.3449, allocations: 1.433 MB / 341 MB, free: 4.168 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.3449, allocations: 4 kB / 341 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.068e-05/0.3449, allocations: 4 kB / 341 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.532e-06/0.3449, allocations: 0 / 341 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/0.345, allocations: 27.98 kB / 341 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.933e-06/0.345, allocations: 3.953 kB / 341 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.345, allocations: 0 / 341 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.3463, allocations: 0.957 MB / 342 MB, free: 3.105 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007419/0.3471, allocations: 423.7 kB / 342.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000109/0.3472, allocations: 24 kB / 342.4 MB, free: 2.648 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002459/0.3475, allocations: 23.98 kB / 342.4 MB, free: 2.625 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.3476, allocations: 63.88 kB / 342.5 MB, free: 2.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000128/0.3478, allocations: 111.9 kB / 342.6 MB, free: 2.453 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001105/0.3489, allocations: 0.6899 MB / 343.3 MB, free: 1.766 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3489, allocations: 0 / 343.3 MB, free: 1.766 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005375/0.3495, allocations: 95.94 kB / 343.4 MB, free: 1.672 MB / 270.1 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]) * Number of clocked states: 0 () * 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.0003177/0.3498, allocations: 155.2 kB / 343.5 MB, free: 1.512 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001249/0.351, allocations: 0.8862 MB / 344.4 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3511, allocations: 3.938 kB / 344.4 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007057/0.3518, allocations: 0.7493 MB / 345.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009717/0.3527, allocations: 226.9 kB / 345.4 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00267/0.3554, allocations: 1.444 MB / 346.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000799/0.3562, allocations: 0.9556 MB / 347.8 MB, free: 13 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003479/0.3566, allocations: 93.33 kB / 347.9 MB, free: 12.91 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.3567, allocations: 43.36 kB / 347.9 MB, free: 12.87 MB / 286.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3567, allocations: 4 kB / 347.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of Templates: time 0.01377/0.3705, allocations: 8.21 MB / 356.1 MB, free: 4.621 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) Environment - environmentSimulation: