Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.001051, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0011/0.0011, allocations: 195.7 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001563/0.001563, allocations: 51.94 kB / 278.2 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3748/0.3764, allocations: 46.63 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003706/0.3802, allocations: 2.043 MB / 326.9 MB, free: 332 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.3823, allocations: 1.037 MB / 327.9 MB, free: 15.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001448/0.3824, allocations: 5.406 kB / 327.9 MB, free: 15.51 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009439/0.3834, allocations: 286.3 kB / 328.2 MB, free: 15.36 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004931/0.3839, allocations: 191 kB / 328.4 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007137/0.3847, allocations: 243.5 kB / 328.6 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.3851, allocations: 343.6 kB / 329 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.3853, allocations: 66.16 kB / 329 MB, free: 14.85 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.3855, allocations: 138.3 kB / 329.2 MB, free: 14.77 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002297/0.3858, allocations: 149.3 kB / 329.3 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.214e-05/0.3858, allocations: 17.62 kB / 329.3 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002287/0.3861, allocations: 88.75 kB / 329.4 MB, free: 14.64 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001447/0.3862, allocations: 85.36 kB / 329.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001516/0.3864, allocations: 123.6 kB / 329.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000511/0.3869, allocations: 348.7 kB / 330 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.3869, allocations: 1.406 kB / 330 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3869, allocations: 0 / 330 MB, free: 14.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.3869, allocations: 0 / 330 MB, free: 14.25 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001271/0.3882, allocations: 0.6524 MB / 330.6 MB, free: 13.63 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.3883, allocations: 13.66 kB / 330.6 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.209e-05/0.3884, allocations: 32.06 kB / 330.7 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004818/0.3889, allocations: 332.5 kB / 331 MB, free: 13.3 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.3889, allocations: 9.844 kB / 331 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.3889, allocations: 11.75 kB / 331 MB, free: 13.29 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003482/0.3893, allocations: 142.3 kB / 331.1 MB, free: 13.18 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3893, allocations: 9.281 kB / 331.1 MB, free: 13.17 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.3893, allocations: 9.344 kB / 331.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.3894, allocations: 2.5 kB / 331.2 MB, free: 13.16 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3895, allocations: 71.62 kB / 331.2 MB, free: 13.13 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008472/0.3904, allocations: 490.4 kB / 331.7 MB, free: 12.69 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003525/0.3908, allocations: 135.6 kB / 331.8 MB, free: 12.61 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.3909, allocations: 59.86 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.485e-05/0.3909, allocations: 2.469 kB / 331.9 MB, free: 12.57 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.3912, allocations: 121 kB / 332 MB, free: 12.47 MB / 270.1 MB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/0.3912, allocations: 0 / 332 MB, free: 12.47 MB / 270.1 MB Notification: Performance of matching and sorting (n=15): time 0.00068/0.3919, allocations: 212.4 kB / 332.2 MB, free: 12.36 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.392, allocations: 104.3 kB / 332.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007089/0.3927, allocations: 434.9 kB / 332.8 MB, free: 11.95 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.3928, allocations: 33.7 kB / 332.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/0.393, allocations: 160 kB / 332.9 MB, free: 11.75 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.881e-05/0.393, allocations: 47.44 kB / 333 MB, free: 11.7 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.348e-05/0.3931, allocations: 41.7 kB / 333 MB, free: 11.66 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.3933, allocations: 346.8 kB / 333.4 MB, free: 11.31 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001282/0.3935, allocations: 39.98 kB / 333.4 MB, free: 11.27 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.3937, allocations: 102 kB / 333.5 MB, free: 11.15 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003056/0.394, allocations: 111 kB / 333.6 MB, free: 11.03 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.394, allocations: 0 / 333.6 MB, free: 11.03 MB / 270.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004263/0.3944, allocations: 177.2 kB / 333.8 MB, free: 10.85 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.3945, allocations: 7.938 kB / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.3945, allocations: 0 / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3945, allocations: 8.062 kB / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3947, allocations: 19.98 kB / 333.8 MB, free: 10.82 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.3947, allocations: 4 kB / 333.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.3948, allocations: 23.83 kB / 333.9 MB, free: 10.79 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.3949, allocations: 4 kB / 333.9 MB, free: 10.79 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003787/0.3953, allocations: 171.5 kB / 334 MB, free: 10.61 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.685e-05/0.3953, allocations: 39.55 kB / 334.1 MB, free: 10.57 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.152e-05/0.3954, allocations: 30.94 kB / 334.1 MB, free: 10.54 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.3954, allocations: 4 kB / 334.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.3955, allocations: 0 / 334.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3955, allocations: 0 / 334.1 MB, free: 10.53 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/0.396, allocations: 293.5 kB / 334.4 MB, free: 10.2 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3961, allocations: 0 / 334.4 MB, free: 10.2 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-05/0.3961, allocations: 11.94 kB / 334.4 MB, free: 10.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.3961, allocations: 3.938 kB / 334.4 MB, free: 10.18 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.3963, allocations: 11.94 kB / 334.4 MB, free: 10.17 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.67e-06/0.3963, allocations: 3.984 kB / 334.4 MB, free: 10.16 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3963, allocations: 3.938 kB / 334.4 MB, free: 10.16 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004581/0.3968, allocations: 200.7 kB / 334.6 MB, free: 9.945 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3969, allocations: 108.7 kB / 334.7 MB, free: 9.82 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.018e-05/0.397, allocations: 11.94 kB / 334.7 MB, free: 9.809 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.3971, allocations: 7.984 kB / 334.7 MB, free: 9.801 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.3972, allocations: 11.98 kB / 334.8 MB, free: 9.789 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.3972, allocations: 8 kB / 334.8 MB, free: 9.781 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0004813/0.3977, allocations: 319 kB / 335.1 MB, free: 9.473 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3977, allocations: 0 / 335.1 MB, free: 9.473 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.3982, allocations: 48 kB / 335.1 MB, free: 9.426 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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/0.3997, allocations: 422.4 kB / 335.5 MB, free: 9.012 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.000482/0.4002, allocations: 135.8 kB / 335.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4002, allocations: 0 / 335.7 MB, free: 8.879 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.4004, allocations: 64.05 kB / 335.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.401, allocations: 77.3 kB / 335.8 MB, free: 8.734 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001182/0.4022, allocations: 0.5562 MB / 336.4 MB, free: 8.152 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.4029, allocations: 0.7675 MB / 337.1 MB, free: 7.359 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0002043/0.4031, allocations: 50.25 kB / 337.2 MB, free: 7.309 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.4032, allocations: 27.42 kB / 337.2 MB, free: 7.285 MB / 270.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4032, allocations: 0 / 337.2 MB, free: 7.285 MB / 270.1 MB Notification: Performance of Templates: time 0.01184/0.415, allocations: 3.762 MB / 341 MB, free: 3.52 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)