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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 100.1 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.001968/0.001968, allocations: 177.3 kB / 15.95 MB, free: 216 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.096/2.096, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004909/0.0004914, allocations: 16 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3896, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.002234/0.3919, allocations: 1.445 MB / 327.9 MB, free: 280 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002429/0.3944, allocations: 0.9559 MB / 328.8 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.661e-05/0.3945, allocations: 1.094 kB / 328.8 MB, free: 15.56 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.429e-05/0.3946, allocations: 21.03 kB / 328.9 MB, free: 15.54 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.651e-05/0.3947, allocations: 32.5 kB / 328.9 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.395, allocations: 70.55 kB / 329 MB, free: 15.46 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.3953, allocations: 155.7 kB / 329.1 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.3955, allocations: 41.56 kB / 329.2 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009953/0.3965, allocations: 0.5185 MB / 329.7 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002813/0.3968, allocations: 162.2 kB / 329.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.211e-05/0.3968, allocations: 7.531 kB / 329.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.264e-05/0.3969, allocations: 7.281 kB / 329.8 MB, free: 15.06 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001926/0.3971, allocations: 135.5 kB / 330 MB, free: 15 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.3973, allocations: 121 kB / 330.1 MB, free: 14.9 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.398, allocations: 0.5918 MB / 330.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.398, allocations: 0 / 330.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.398, allocations: 0 / 330.7 MB, free: 14.46 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.398, allocations: 0 / 330.7 MB, free: 14.46 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.001445/0.3995, allocations: 1.036 MB / 331.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.3995, allocations: 16.89 kB / 331.7 MB, free: 13.46 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001884/0.3997, allocations: 77.19 kB / 331.8 MB, free: 13.42 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006329/0.4004, allocations: 362.9 kB / 332.2 MB, free: 13.1 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.668e-05/0.4004, allocations: 14.72 kB / 332.2 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.661e-05/0.4005, allocations: 20.22 kB / 332.2 MB, free: 13.09 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.4013, allocations: 254.8 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.4013, allocations: 0 / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.548e-05/0.4013, allocations: 7.844 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.4014, allocations: 2.188 kB / 332.5 MB, free: 12.95 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000389/0.4018, allocations: 134.5 kB / 332.6 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.4037, allocations: 0.7329 MB / 333.3 MB, free: 12.31 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004789/0.4042, allocations: 205.7 kB / 333.5 MB, free: 12.2 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.4042, allocations: 5.984 kB / 333.5 MB, free: 12.19 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006246/0.4048, allocations: 394.9 kB / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of pre-optimization done (n=29): time 1.813e-06/0.4048, allocations: 0 / 333.9 MB, free: 11.78 MB / 270.1 MB Notification: Performance of matching and sorting (n=29): time 0.001804/0.4066, allocations: 1.245 MB / 335.2 MB, free: 10.41 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.4068, allocations: 281 kB / 335.4 MB, free: 10.07 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001623/0.4084, allocations: 0.953 MB / 336.4 MB, free: 9.109 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 7.215e-05/0.4085, allocations: 45.64 kB / 336.4 MB, free: 9.059 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.4086, allocations: 122 kB / 336.6 MB, free: 8.934 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.654e-05/0.4087, allocations: 63.19 kB / 336.6 MB, free: 8.871 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.4088, allocations: 12 kB / 336.6 MB, free: 8.859 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/0.409, allocations: 334.8 kB / 337 MB, free: 8.523 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.4093, allocations: 128.2 kB / 337.1 MB, free: 8.398 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003233/0.4096, allocations: 159.9 kB / 337.2 MB, free: 8.23 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000403/0.41, allocations: 341.6 kB / 337.6 MB, free: 7.848 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.41, allocations: 7.938 kB / 337.6 MB, free: 7.84 MB / 270.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001168/0.4112, allocations: 0.7524 MB / 338.3 MB, free: 7.031 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/0.4114, allocations: 245.6 kB / 338.6 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4114, allocations: 0 / 338.6 MB, free: 6.742 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.835e-05/0.4115, allocations: 8 kB / 338.6 MB, free: 6.734 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.966e-05/0.4115, allocations: 12.08 kB / 338.6 MB, free: 6.723 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.4115, allocations: 3.953 kB / 338.6 MB, free: 6.719 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003985/0.4119, allocations: 31.98 kB / 338.6 MB, free: 6.688 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/0.4121, allocations: 108.1 kB / 338.7 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.0009572/0.4131, allocations: 0.6084 MB / 339.3 MB, free: 5.914 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.4132, allocations: 75.16 kB / 339.4 MB, free: 5.84 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002733/0.4135, allocations: 134.9 kB / 339.5 MB, free: 5.703 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.4135, allocations: 0 / 339.5 MB, free: 5.703 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4135, allocations: 0 / 339.5 MB, free: 5.703 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4135, allocations: 7.938 kB / 339.6 MB, free: 5.695 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.4157, allocations: 1.425 MB / 341 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.4157, allocations: 0 / 341 MB, free: 4.164 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.917e-05/0.4157, allocations: 4 kB / 341 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.4157, allocations: 0 / 341 MB, free: 4.16 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.808e-05/0.4158, allocations: 35.97 kB / 341 MB, free: 4.125 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.4158, allocations: 7.953 kB / 341 MB, free: 4.117 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4158, allocations: 0 / 341 MB, free: 4.117 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.417, allocations: 0.9493 MB / 342 MB, free: 3.102 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007485/0.4178, allocations: 415.7 kB / 342.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.4179, allocations: 20 kB / 342.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002714/0.4182, allocations: 31.97 kB / 342.4 MB, free: 2.625 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/0.4184, allocations: 63.88 kB / 342.5 MB, free: 2.562 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001608/0.4186, allocations: 119.9 kB / 342.6 MB, free: 2.445 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.001172/0.4197, allocations: 0.6898 MB / 343.3 MB, free: 1.758 MB / 270.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4198, allocations: 4 kB / 343.3 MB, free: 1.754 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0005597/0.4203, allocations: 95.94 kB / 343.4 MB, free: 1.66 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.0003274/0.4207, allocations: 139.2 kB / 343.5 MB, free: 1.516 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4219, allocations: 0.8936 MB / 344.4 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.422, allocations: 0 / 344.4 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008304/0.4228, allocations: 0.7569 MB / 345.2 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.001142/0.4239, allocations: 222.6 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.003222/0.4272, allocations: 1.44 MB / 346.8 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.4282, allocations: 0.9634 MB / 347.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0003915/0.4286, allocations: 97.33 kB / 347.9 MB, free: 12.9 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.4287, allocations: 43.36 kB / 347.9 MB, free: 12.86 MB / 286.1 MB Notification: Performance of SimCode: time 1.994e-06/0.4288, allocations: 3.938 kB / 348 MB, free: 12.85 MB / 286.1 MB Notification: Performance of Templates: time 0.01596/0.4447, allocations: 8.199 MB / 356.1 MB, free: 4.621 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.WiredX.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: