Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001358/0.001358, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001517/0.001517, allocations: 191.4 kB / 16.14 MB, free: 6.707 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.924/1.924, allocations: 205.1 MB / 222 MB, free: 4.762 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.001802/0.001802, allocations: 51.94 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3592, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003033/0.3623, allocations: 2.183 MB / 326.9 MB, free: 204 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.002324/0.3646, allocations: 1.146 MB / 328 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.3648, allocations: 2.438 kB / 328 MB, free: 15.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001994/0.365, allocations: 35.27 kB / 328 MB, free: 15.29 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.3651, allocations: 28.62 kB / 328.1 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.3655, allocations: 159.7 kB / 328.2 MB, free: 15.14 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004687/0.366, allocations: 418.9 kB / 328.6 MB, free: 14.89 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002806/0.3663, allocations: 155 kB / 328.8 MB, free: 14.8 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009238/0.3672, allocations: 0.8107 MB / 329.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.3675, allocations: 239 kB / 329.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.3676, allocations: 17.72 kB / 329.8 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.687e-05/0.3677, allocations: 18.09 kB / 329.9 MB, free: 14.37 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.3679, allocations: 129.4 kB / 330 MB, free: 14.29 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002475/0.3682, allocations: 198.8 kB / 330.2 MB, free: 14.14 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007873/0.369, allocations: 0.9006 MB / 331.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.369, allocations: 0 / 331.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.369, allocations: 0 / 331.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.369, allocations: 1.375 kB / 331.1 MB, free: 13.43 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.001373/0.3704, allocations: 0.8709 MB / 332 MB, free: 12.68 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.3704, allocations: 9.438 kB / 332 MB, free: 12.68 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.3706, allocations: 49.78 kB / 332 MB, free: 12.66 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004935/0.3711, allocations: 345.7 kB / 332.4 MB, free: 12.36 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.3711, allocations: 33.91 kB / 332.4 MB, free: 12.33 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.161e-05/0.3712, allocations: 32.38 kB / 332.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009666/0.3722, allocations: 490.1 kB / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.3722, allocations: 0 / 332.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.748e-05/0.3723, allocations: 23.94 kB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.3723, allocations: 8 kB / 332.9 MB, free: 11.79 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.3731, allocations: 374.4 kB / 333.3 MB, free: 11.42 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001783/0.3749, allocations: 1.112 MB / 334.4 MB, free: 10.26 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.376, allocations: 435.5 kB / 334.8 MB, free: 9.824 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.3763, allocations: 177.3 kB / 335 MB, free: 9.648 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.911e-05/0.3764, allocations: 4.281 kB / 335 MB, free: 9.645 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000724/0.3771, allocations: 352.3 kB / 335.4 MB, free: 9.289 MB / 270.1 MB Notification: Performance of pre-optimization done (n=35): time 1.583e-06/0.3771, allocations: 3.938 kB / 335.4 MB, free: 9.285 MB / 270.1 MB Notification: Performance of matching and sorting (n=35): time 0.001503/0.3786, allocations: 0.7229 MB / 336.1 MB, free: 8.543 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.484e-05/0.3787, allocations: 110.8 kB / 336.2 MB, free: 8.41 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.3791, allocations: 310.3 kB / 336.5 MB, free: 8.102 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 6.657e-05/0.3791, allocations: 37.7 kB / 336.5 MB, free: 8.059 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.3793, allocations: 184.7 kB / 336.7 MB, free: 7.871 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000112/0.3794, allocations: 79.02 kB / 336.8 MB, free: 7.793 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002841/0.3797, allocations: 182 kB / 337 MB, free: 7.609 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0002618/0.38, allocations: 350.7 kB / 337.3 MB, free: 7.258 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000365/0.3803, allocations: 180.8 kB / 337.5 MB, free: 7.082 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.3807, allocations: 232.5 kB / 337.7 MB, free: 6.84 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007712/0.3815, allocations: 0.5223 MB / 338.2 MB, free: 6.277 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.3815, allocations: 0 / 338.2 MB, free: 6.277 MB / 270.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001074/0.3826, allocations: 0.6488 MB / 338.9 MB, free: 5.609 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/0.3827, allocations: 63.39 kB / 338.9 MB, free: 5.535 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3827, allocations: 3.938 kB / 338.9 MB, free: 5.531 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.3827, allocations: 4 kB / 338.9 MB, free: 5.527 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.3829, allocations: 63.94 kB / 339 MB, free: 5.465 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3829, allocations: 0 / 339 MB, free: 5.465 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.3832, allocations: 55.75 kB / 339.1 MB, free: 5.41 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002983/0.3835, allocations: 283.7 kB / 339.3 MB, free: 5.133 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.0003615/0.3838, allocations: 285.1 kB / 339.6 MB, free: 4.832 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-05/0.3839, allocations: 35.62 kB / 339.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.092e-05/0.384, allocations: 34.95 kB / 339.7 MB, free: 4.762 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.384, allocations: 4 kB / 339.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.384, allocations: 0 / 339.7 MB, free: 4.758 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3841, allocations: 3.984 kB / 339.7 MB, free: 4.754 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006004/0.3847, allocations: 485.1 kB / 340.2 MB, free: 4.23 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3847, allocations: 0 / 340.2 MB, free: 4.23 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.3848, allocations: 51.91 kB / 340.2 MB, free: 4.18 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3848, allocations: 0 / 340.2 MB, free: 4.18 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.917e-05/0.3849, allocations: 51.97 kB / 340.3 MB, free: 4.129 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.3849, allocations: 4 kB / 340.3 MB, free: 4.125 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.3849, allocations: 0 / 340.3 MB, free: 4.125 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.386, allocations: 0.6061 MB / 340.9 MB, free: 3.488 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002592/0.3862, allocations: 192.8 kB / 341.1 MB, free: 3.281 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3863, allocations: 12 kB / 341.1 MB, free: 3.27 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.3866, allocations: 51.75 kB / 341.1 MB, free: 3.219 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002407/0.3868, allocations: 95.88 kB / 341.2 MB, free: 3.125 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002587/0.3871, allocations: 279.7 kB / 341.5 MB, free: 2.852 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001883/0.3873, allocations: 201.9 kB / 341.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3873, allocations: 0 / 341.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0003852/0.3877, allocations: 103.8 kB / 341.8 MB, free: 2.555 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.000206/0.3879, allocations: 141.8 kB / 341.9 MB, free: 2.406 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0009425/0.3888, allocations: 0.5569 MB / 342.5 MB, free: 1.824 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3888, allocations: 0 / 342.5 MB, free: 1.824 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004731/0.3893, allocations: 358.6 kB / 342.8 MB, free: 1.449 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.3905, allocations: 288.6 kB / 343.1 MB, free: 1.164 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.3917, allocations: 0.8257 MB / 344 MB, free: 316 kB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.3921, allocations: 0.815 MB / 344.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.001459/0.3936, allocations: 0.751 MB / 345.5 MB, free: 14.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006877/0.3943, allocations: 258.8 kB / 345.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3943, allocations: 0 / 345.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of Templates: time 0.01557/0.4099, allocations: 10.34 MB / 356.1 MB, free: 3.895 MB / 286.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1)