Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.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.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002294/0.002294, allocations: 192.1 kB / 16.13 MB, free: 6.66 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.86/1.86, allocations: 205.1 MB / 222 MB, free: 4.73 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.001291/0.001291, allocations: 55.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4154, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004225/0.4197, allocations: 2.187 MB / 326.9 MB, free: 188 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.4229, allocations: 1.142 MB / 328 MB, free: 15.31 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001748/0.4231, allocations: 5.375 kB / 328 MB, free: 15.3 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002684/0.4234, allocations: 39.98 kB / 328 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.4236, allocations: 33.36 kB / 328.1 MB, free: 15.24 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005947/0.4242, allocations: 150.8 kB / 328.2 MB, free: 15.12 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005869/0.4248, allocations: 427.8 kB / 328.6 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003727/0.4252, allocations: 145.5 kB / 328.8 MB, free: 14.79 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001182/0.4263, allocations: 0.8114 MB / 329.6 MB, free: 14.48 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003613/0.4267, allocations: 235.7 kB / 329.8 MB, free: 14.36 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.4268, allocations: 21.97 kB / 329.8 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.4269, allocations: 17.75 kB / 329.9 MB, free: 14.35 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002354/0.4272, allocations: 125.1 kB / 330 MB, free: 14.27 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003071/0.4275, allocations: 198.3 kB / 330.2 MB, free: 14.13 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009219/0.4284, allocations: 0.893 MB / 331.1 MB, free: 13.42 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4285, allocations: 0 / 331.1 MB, free: 13.42 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4285, allocations: 0 / 331.1 MB, free: 13.42 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.4285, allocations: 1.219 kB / 331.1 MB, free: 13.42 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001624/0.4301, allocations: 0.8716 MB / 331.9 MB, free: 12.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4302, allocations: 13.91 kB / 332 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.4303, allocations: 44.97 kB / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005692/0.4309, allocations: 354.2 kB / 332.4 MB, free: 12.34 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.266e-05/0.431, allocations: 28.06 kB / 332.4 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.177e-05/0.4311, allocations: 31.91 kB / 332.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.4321, allocations: 494.1 kB / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.4321, allocations: 0 / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.992e-05/0.4322, allocations: 16 kB / 332.9 MB, free: 11.8 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/0.4322, allocations: 8 kB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008272/0.433, allocations: 378.4 kB / 333.3 MB, free: 11.42 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002046/0.4351, allocations: 1.116 MB / 334.4 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.4363, allocations: 439.5 kB / 334.8 MB, free: 9.82 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003869/0.4367, allocations: 177.3 kB / 335 MB, free: 9.645 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.573e-05/0.4368, allocations: 288 / 335 MB, free: 9.645 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007197/0.4375, allocations: 352.3 kB / 335.3 MB, free: 9.289 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.934e-06/0.4376, allocations: 0 / 335.3 MB, free: 9.289 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001654/0.4392, allocations: 0.7267 MB / 336.1 MB, free: 8.543 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.4393, allocations: 110.8 kB / 336.2 MB, free: 8.41 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/0.4397, allocations: 306.4 kB / 336.5 MB, free: 8.105 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.4398, allocations: 41.69 kB / 336.5 MB, free: 8.059 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.44, allocations: 184.7 kB / 336.7 MB, free: 7.871 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000128/0.4402, allocations: 82.98 kB / 336.8 MB, free: 7.789 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003523/0.4405, allocations: 182 kB / 337 MB, free: 7.605 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.4408, allocations: 342.8 kB / 337.3 MB, free: 7.262 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/0.4412, allocations: 192.6 kB / 337.5 MB, free: 7.074 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004536/0.4417, allocations: 236.5 kB / 337.7 MB, free: 6.828 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009487/0.4427, allocations: 0.5145 MB / 338.2 MB, free: 6.273 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4427, allocations: 0 / 338.2 MB, free: 6.273 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00134/0.444, allocations: 0.6371 MB / 338.9 MB, free: 5.617 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.194e-05/0.4441, allocations: 71.42 kB / 338.9 MB, free: 5.535 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.4441, allocations: 4 kB / 338.9 MB, free: 5.531 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.4442, allocations: 0 / 338.9 MB, free: 5.531 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.4443, allocations: 59.91 kB / 339 MB, free: 5.473 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.4444, allocations: 7.938 kB / 339 MB, free: 5.465 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003677/0.4447, allocations: 47.8 kB / 339.1 MB, free: 5.418 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003031/0.445, allocations: 287.6 kB / 339.3 MB, free: 5.137 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition1,$PRE.FF.And2.auxiliary_n,FF.RS2.TD1.x_delayed,$PRE.FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.x[2],FF.RS2.Nor2.x[1],$PRE.FF.And4.auxiliary_n,FF.RS1.TD1.x_delayed,$PRE.FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.x[2],FF.RS1.Nor2.x[1],$PRE.FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And4.x[1],FF.And3.auxiliary_n,FF.And3.x[2],$PRE.FF.And1.auxiliary_n,FF.And1.y,FF.RS2.TD1.x,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary[2],K.y,J.y,CLK.t_i,$PRE.CLK.t_i,FF.Not1.auxiliary,$PRE.FF.And3.auxiliary_n,FF.And3.y,FF.And2.auxiliary_n,FF.And2.auxiliary[2],FF.And2.x[1],FF.And1.auxiliary_n,FF.And1.auxiliary[2],FF.And1.x[1],FF.RS1.TD1.x,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * 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.0004331/0.4455, allocations: 289.1 kB / 339.6 MB, free: 4.832 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.879e-05/0.4456, allocations: 31.62 kB / 339.6 MB, free: 4.801 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.87e-05/0.4457, allocations: 38.95 kB / 339.7 MB, free: 4.762 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4457, allocations: 4 kB / 339.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.4457, allocations: 0 / 339.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.4457, allocations: 0 / 339.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006508/0.4464, allocations: 485.1 kB / 340.2 MB, free: 4.234 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4464, allocations: 4 kB / 340.2 MB, free: 4.23 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001076/0.4465, allocations: 47.91 kB / 340.2 MB, free: 4.184 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.4465, allocations: 4 kB / 340.2 MB, free: 4.18 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.043e-05/0.4466, allocations: 47.97 kB / 340.3 MB, free: 4.133 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.4466, allocations: 4 kB / 340.3 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.4466, allocations: 0 / 340.3 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.4477, allocations: 0.6099 MB / 340.9 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002947/0.448, allocations: 192.8 kB / 341.1 MB, free: 3.281 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.4481, allocations: 16 kB / 341.1 MB, free: 3.266 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.4484, allocations: 43.81 kB / 341.1 MB, free: 3.223 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002754/0.4487, allocations: 87.91 kB / 341.2 MB, free: 3.137 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003729/0.4491, allocations: 283.7 kB / 341.5 MB, free: 2.859 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0002585/0.4493, allocations: 205.9 kB / 341.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4493, allocations: 0 / 341.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0004843/0.4498, allocations: 99.73 kB / 341.8 MB, free: 2.562 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: 33 ($whenCondition1,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.x[1],FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,FF.Not1.auxiliary,CLK.t_i,J.y,K.y) * Number of discrete states: 13 (FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,K.y,J.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.0003076/0.4501, allocations: 141.8 kB / 341.9 MB, free: 2.414 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.4513, allocations: 0.5491 MB / 342.5 MB, free: 1.84 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.4513, allocations: 4 kB / 342.5 MB, free: 1.836 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005893/0.4519, allocations: 362.6 kB / 342.8 MB, free: 1.457 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001377/0.4533, allocations: 305 kB / 343.1 MB, free: 1.156 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.4551, allocations: 0.8257 MB / 344 MB, free: 308 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/0.4559, allocations: 0.8072 MB / 344.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001854/0.4577, allocations: 0.7432 MB / 345.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007317/0.4585, allocations: 262.8 kB / 345.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of SimCode: time 1.453e-06/0.4585, allocations: 0 / 345.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of Templates: time 0.01987/0.4784, allocations: 10.33 MB / 356.1 MB, free: 3.902 MB / 286.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)