Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00224/0.00224, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 95.38 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003923/0.0003924, allocations: 8 kB / 327 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3378, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002392/0.3403, allocations: 1.735 MB / 376.4 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00331/0.3436, allocations: 1.106 MB / 377.5 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.3438, allocations: 2.344 kB / 377.5 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001905/0.3441, allocations: 29.95 kB / 377.5 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.3442, allocations: 43.41 kB / 377.5 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005771/0.3448, allocations: 112.2 kB / 377.6 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005977/0.3454, allocations: 257 kB / 377.9 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.3458, allocations: 123.3 kB / 378 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000992/0.3468, allocations: 0.5234 MB / 378.5 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004465/0.3473, allocations: 246 kB / 378.8 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.3474, allocations: 9.75 kB / 378.8 MB, free: 42.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.3476, allocations: 13.94 kB / 378.8 MB, free: 42.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002639/0.3478, allocations: 127.2 kB / 378.9 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.348, allocations: 87.48 kB / 379 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007271/0.3487, allocations: 0.7751 MB / 379.8 MB, free: 41.81 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3487, allocations: 1.5 kB / 379.8 MB, free: 41.81 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3487, allocations: 0 / 379.8 MB, free: 41.81 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.3488, allocations: 0 / 379.8 MB, free: 41.81 MB / 298.7 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.001342/0.3501, allocations: 0.7244 MB / 380.5 MB, free: 41.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.3502, allocations: 14.33 kB / 380.5 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001864/0.3504, allocations: 71.47 kB / 380.6 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001808/0.3506, allocations: 51.39 kB / 380.6 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.3512, allocations: 340.9 kB / 381 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.834e-05/0.3513, allocations: 27.56 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.3515, allocations: 32.72 kB / 381 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3529, allocations: 495.1 kB / 381.5 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.353, allocations: 0 / 381.5 MB, free: 40.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.3531, allocations: 17.03 kB / 381.5 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.3531, allocations: 7.125 kB / 381.5 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.3544, allocations: 387.2 kB / 381.9 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.3574, allocations: 1.117 MB / 383 MB, free: 39.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001881/0.3593, allocations: 468.8 kB / 383.5 MB, free: 39.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.3595, allocations: 4 kB / 383.5 MB, free: 39.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009448/0.3604, allocations: 358.2 kB / 383.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 3.667e-06/0.3605, allocations: 0.5 kB / 383.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.002307/0.3628, allocations: 0.7345 MB / 384.6 MB, free: 38.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.3629, allocations: 122.8 kB / 384.7 MB, free: 38.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004341/0.3633, allocations: 298.5 kB / 385 MB, free: 38.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.3635, allocations: 45.69 kB / 385 MB, free: 38.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3636, allocations: 231.1 kB / 385.3 MB, free: 37.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.3637, allocations: 71.08 kB / 385.3 MB, free: 37.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.578e-05/0.3638, allocations: 8 kB / 385.3 MB, free: 37.85 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.093e-05/0.3639, allocations: 334.8 kB / 385.7 MB, free: 37.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.3645, allocations: 188.8 kB / 385.9 MB, free: 37.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006081/0.3651, allocations: 236.5 kB / 386.1 MB, free: 37.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006605/0.3658, allocations: 263.8 kB / 386.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.3658, allocations: 0 / 386.3 MB, free: 36.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001697/0.3675, allocations: 0.6427 MB / 387 MB, free: 36.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.471e-05/0.3676, allocations: 63.41 kB / 387.1 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3676, allocations: 4.031 kB / 387.1 MB, free: 36.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.3677, allocations: 4 kB / 387.1 MB, free: 36.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.3679, allocations: 59.84 kB / 387.1 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.3679, allocations: 3.984 kB / 387.1 MB, free: 36.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005665/0.3685, allocations: 59.7 kB / 387.2 MB, free: 35.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003153/0.3688, allocations: 280.6 kB / 387.5 MB, free: 35.68 MB / 298.7 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,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.x[1],FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004783/0.3693, allocations: 289.1 kB / 387.7 MB, free: 35.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.3695, allocations: 31.62 kB / 387.8 MB, free: 35.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.526e-05/0.3696, allocations: 34.95 kB / 387.8 MB, free: 35.31 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3696, allocations: 4 kB / 387.8 MB, free: 35.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3696, allocations: 0 / 387.8 MB, free: 35.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3696, allocations: 4 kB / 387.8 MB, free: 35.3 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007601/0.3704, allocations: 485.1 kB / 388.3 MB, free: 34.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3704, allocations: 7.938 kB / 388.3 MB, free: 34.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.3706, allocations: 51.91 kB / 388.3 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.3706, allocations: 0 / 388.3 MB, free: 34.72 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.3707, allocations: 51.95 kB / 388.4 MB, free: 34.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.859e-06/0.3707, allocations: 0 / 388.4 MB, free: 34.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3708, allocations: 0 / 388.4 MB, free: 34.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.3724, allocations: 0.6217 MB / 389 MB, free: 34.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/0.3728, allocations: 192.8 kB / 389.2 MB, free: 33.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.373, allocations: 12 kB / 389.2 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004054/0.3734, allocations: 47.75 kB / 389.3 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000322/0.3737, allocations: 87.91 kB / 389.3 MB, free: 33.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003124/0.3741, allocations: 279.7 kB / 389.6 MB, free: 33.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002545/0.3743, allocations: 202 kB / 389.8 MB, free: 33.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.3744, allocations: 0 / 389.8 MB, free: 33.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000615/0.375, allocations: 99.84 kB / 389.9 MB, free: 33.1 MB / 298.7 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 (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.001901/0.3769, allocations: 1.188 MB / 391.1 MB, free: 31.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.3784, allocations: 0.5661 MB / 391.7 MB, free: 31.29 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.3784, allocations: 3.859 kB / 391.7 MB, free: 31.29 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007265/0.3791, allocations: 362.4 kB / 392 MB, free: 30.91 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001911/0.3811, allocations: 288.6 kB / 392.3 MB, free: 30.63 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005431/0.3865, allocations: 2.737 MB / 395 MB, free: 27.81 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003302/0.3869, allocations: 0.8149 MB / 395.9 MB, free: 26.97 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001845/0.3887, allocations: 434.5 kB / 396.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.926e-06/0.3888, allocations: 4 kB / 396.3 MB, free: 26.54 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.94/3.329, allocations: 9.549 MB / 405.8 MB, free: 16.64 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat