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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001423/0.001423, allocations: 178.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.997/1.997, allocations: 205.4 MB / 223.4 MB, free: 5.316 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.0004439/0.0004444, allocations: 8 kB / 280.1 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.372/0.3724, allocations: 47.59 MB / 327.7 MB, free: 1.473 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002071/0.3746, allocations: 1.449 MB / 329.2 MB, free: 336 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00241/0.377, allocations: 0.956 MB / 330.1 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.829e-05/0.3771, allocations: 0 / 330.1 MB, free: 15.62 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.3773, allocations: 15.84 kB / 330.1 MB, free: 15.6 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.3774, allocations: 33.05 kB / 330.2 MB, free: 15.58 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.3778, allocations: 69.56 kB / 330.2 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.3782, allocations: 156.4 kB / 330.4 MB, free: 15.42 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.3784, allocations: 37.8 kB / 330.4 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008801/0.3793, allocations: 0.5219 MB / 330.9 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.3796, allocations: 158.9 kB / 331.1 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.764e-05/0.3796, allocations: 7.469 kB / 331.1 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.188e-05/0.3797, allocations: 7.469 kB / 331.1 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.3799, allocations: 134.8 kB / 331.2 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.38, allocations: 125 kB / 331.4 MB, free: 14.96 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007156/0.3807, allocations: 0.5832 MB / 331.9 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3808, allocations: 0.9062 kB / 331.9 MB, free: 14.52 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.3808, allocations: 0 / 331.9 MB, free: 14.52 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.3808, allocations: 0 / 331.9 MB, free: 14.52 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.00126/0.382, allocations: 1.041 MB / 333 MB, free: 13.53 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.3821, allocations: 14.14 kB / 333 MB, free: 13.52 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.3823, allocations: 75.31 kB / 333.1 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005542/0.3828, allocations: 367.9 kB / 333.4 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.582e-05/0.3829, allocations: 13.78 kB / 333.4 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.3829, allocations: 16.25 kB / 333.5 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005762/0.3835, allocations: 254.3 kB / 333.7 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.3835, allocations: 1.188 kB / 333.7 MB, free: 13.01 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/0.3836, allocations: 15.28 kB / 333.7 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.3836, allocations: 2.562 kB / 333.7 MB, free: 13 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003086/0.3839, allocations: 134.5 kB / 333.9 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3854, allocations: 0.7395 MB / 334.6 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.3858, allocations: 198.5 kB / 334.8 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.398e-05/0.3858, allocations: 4 kB / 334.8 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000573/0.3864, allocations: 389.9 kB / 335.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 2.285e-06/0.3864, allocations: 0 / 335.2 MB, free: 11.78 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001761/0.3882, allocations: 1.245 MB / 336.4 MB, free: 10.41 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001737/0.3883, allocations: 285 kB / 336.7 MB, free: 10.07 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.3898, allocations: 0.9452 MB / 337.6 MB, free: 9.113 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 5.72e-05/0.3898, allocations: 37.7 kB / 337.7 MB, free: 9.07 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.872e-05/0.3899, allocations: 126 kB / 337.8 MB, free: 8.941 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.3901, allocations: 71.19 kB / 337.9 MB, free: 8.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-05/0.3901, allocations: 11.94 kB / 337.9 MB, free: 8.859 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.3903, allocations: 334.8 kB / 338.2 MB, free: 8.523 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000265/0.3905, allocations: 128.2 kB / 338.3 MB, free: 8.398 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002626/0.3908, allocations: 159.9 kB / 338.5 MB, free: 8.23 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003737/0.3912, allocations: 341.6 kB / 338.8 MB, free: 7.848 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3912, allocations: 0 / 338.8 MB, free: 7.848 MB / 270.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001102/0.3923, allocations: 0.7525 MB / 339.6 MB, free: 7.039 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001988/0.3925, allocations: 249.5 kB / 339.8 MB, free: 6.746 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3925, allocations: 4.094 kB / 339.8 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.3926, allocations: 0 / 339.8 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.37e-05/0.3926, allocations: 15.98 kB / 339.8 MB, free: 6.727 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.3927, allocations: 3.953 kB / 339.8 MB, free: 6.723 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.393, allocations: 31.98 kB / 339.9 MB, free: 6.691 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.3931, allocations: 112.1 kB / 340 MB, free: 6.582 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.0007365/0.3939, allocations: 0.6084 MB / 340.6 MB, free: 5.914 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.394, allocations: 75.16 kB / 340.7 MB, free: 5.84 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002021/0.3942, allocations: 130.9 kB / 340.8 MB, free: 5.707 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3942, allocations: 0 / 340.8 MB, free: 5.707 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.3942, allocations: 0 / 340.8 MB, free: 5.707 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.3943, allocations: 7.938 kB / 340.8 MB, free: 5.699 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.3963, allocations: 1.429 MB / 342.2 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3963, allocations: 3.938 kB / 342.2 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.857e-05/0.3963, allocations: 4 kB / 342.2 MB, free: 4.156 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3963, allocations: 4 kB / 342.2 MB, free: 4.152 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.842e-05/0.3964, allocations: 31.97 kB / 342.3 MB, free: 4.121 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.3964, allocations: 7.953 kB / 342.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3964, allocations: 0 / 342.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.3978, allocations: 0.9493 MB / 343.2 MB, free: 3.098 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006945/0.3985, allocations: 419.7 kB / 343.6 MB, free: 2.668 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.3986, allocations: 16 kB / 343.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.3989, allocations: 35.97 kB / 343.7 MB, free: 2.617 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.3991, allocations: 55.89 kB / 343.7 MB, free: 2.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.3992, allocations: 111.9 kB / 343.9 MB, free: 2.453 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.4002, allocations: 0.6976 MB / 344.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4002, allocations: 0 / 344.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004659/0.4007, allocations: 95.94 kB / 344.6 MB, free: 1.664 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.0002385/0.4009, allocations: 147.2 kB / 344.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.4021, allocations: 0.8862 MB / 345.7 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4022, allocations: 3.938 kB / 345.7 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007702/0.4029, allocations: 0.7532 MB / 346.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.404, allocations: 218.7 kB / 346.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.4066, allocations: 1.448 MB / 348.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008371/0.4074, allocations: 0.9595 MB / 349.1 MB, free: 13 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003599/0.4078, allocations: 101.3 kB / 349.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.4079, allocations: 43.36 kB / 349.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of SimCode: time 1.713e-06/0.4079, allocations: 0 / 349.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of Templates: time 0.01604/0.424, allocations: 8.206 MB / 357.4 MB, free: 4.617 MB / 286.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Digital.Examples.WiredX.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: