Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008861/0.0008861, allocations: 99.23 kB / 16.94 MB, free: 5.98 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.0008679/0.0008679, allocations: 176.6 kB / 17.82 MB, free: 5.652 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.439/1.439, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.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.000437/0.0004371, allocations: 8 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1035, allocations: 47.58 MB / 328.4 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002203/0.1057, allocations: 1.736 MB / 330.2 MB, free: 2.277 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1079, allocations: 1.109 MB / 331.3 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1081, allocations: 4 kB / 331.3 MB, free: 1.156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.1082, allocations: 35.7 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.1083, allocations: 31.94 kB / 331.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.1088, allocations: 111.8 kB / 331.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.1091, allocations: 264 kB / 331.7 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.1094, allocations: 135.8 kB / 331.8 MB, free: 0.5859 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005742/0.1099, allocations: 0.5107 MB / 332.3 MB, free: 76 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.1103, allocations: 251.4 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.1103, allocations: 8 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.56e-05/0.1104, allocations: 16 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.1106, allocations: 119.7 kB / 332.7 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.319e-05/0.1107, allocations: 89.52 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006223/0.1113, allocations: 0.7794 MB / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.215e-06/0.1113, allocations: 0 / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1113, allocations: 0 / 333.6 MB, free: 14.81 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.1114, allocations: 0 / 333.6 MB, free: 14.81 MB / 286.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.001055/0.1124, allocations: 0.7202 MB / 334.3 MB, free: 14.03 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1125, allocations: 8.031 kB / 334.3 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.1126, allocations: 78.47 kB / 334.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/0.1127, allocations: 47.44 kB / 334.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.1133, allocations: 346.3 kB / 334.8 MB, free: 13.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.472e-05/0.1133, allocations: 28.59 kB / 334.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.842e-05/0.1134, allocations: 32 kB / 334.8 MB, free: 13.45 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009/0.1143, allocations: 493.7 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1143, allocations: 4 kB / 335.3 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/0.1144, allocations: 16 kB / 335.3 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1144, allocations: 8 kB / 335.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007439/0.1152, allocations: 382.4 kB / 335.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.117, allocations: 1.12 MB / 336.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.1181, allocations: 471.5 kB / 337.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.158e-05/0.1182, allocations: 4.281 kB / 337.3 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005833/0.1187, allocations: 343.2 kB / 337.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=35): time 2.204e-06/0.1188, allocations: 0 / 337.6 MB, free: 10.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.001351/0.1201, allocations: 0.7422 MB / 338.4 MB, free: 9.805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/0.1202, allocations: 114.8 kB / 338.5 MB, free: 9.668 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003159/0.1205, allocations: 310.4 kB / 338.8 MB, free: 9.355 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.709e-05/0.1206, allocations: 37.7 kB / 338.8 MB, free: 9.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.1207, allocations: 168.8 kB / 339 MB, free: 9.141 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/0.1209, allocations: 83 kB / 339.1 MB, free: 9.059 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.937e-05/0.1209, allocations: 8 kB / 339.1 MB, free: 9.051 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.1211, allocations: 338.8 kB / 339.4 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003803/0.1215, allocations: 184.8 kB / 339.6 MB, free: 8.531 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.1219, allocations: 240.5 kB / 339.8 MB, free: 8.281 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004193/0.1223, allocations: 263.3 kB / 340.1 MB, free: 8.012 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1223, allocations: 0 / 340.1 MB, free: 8.012 MB / 286.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00112/0.1235, allocations: 0.6604 MB / 340.8 MB, free: 7.332 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/0.1235, allocations: 63.39 kB / 340.8 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1235, allocations: 0 / 340.8 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1236, allocations: 4.031 kB / 340.8 MB, free: 7.254 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.1237, allocations: 63.91 kB / 340.9 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.1237, allocations: 3.938 kB / 340.9 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003277/0.1241, allocations: 55.75 kB / 340.9 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002507/0.1243, allocations: 279.7 kB / 341.2 MB, free: 6.859 MB / 286.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,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.0003948/0.1247, allocations: 293.1 kB / 341.5 MB, free: 6.551 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.1248, allocations: 31.62 kB / 341.5 MB, free: 6.52 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.163e-05/0.1249, allocations: 38.95 kB / 341.6 MB, free: 6.484 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.1249, allocations: 7.938 kB / 341.6 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.1249, allocations: 0 / 341.6 MB, free: 6.477 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.125, allocations: 4 kB / 341.6 MB, free: 6.473 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.1255, allocations: 481.1 kB / 342.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.1255, allocations: 0 / 342.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.985e-05/0.1256, allocations: 63.84 kB / 342.1 MB, free: 5.891 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1256, allocations: 4 kB / 342.1 MB, free: 5.887 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.996e-05/0.1257, allocations: 47.97 kB / 342.2 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1257, allocations: 0 / 342.2 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1257, allocations: 0 / 342.2 MB, free: 5.84 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1268, allocations: 0.6178 MB / 342.8 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/0.1271, allocations: 196.6 kB / 343 MB, free: 4.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.1272, allocations: 19.98 kB / 343 MB, free: 4.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.1275, allocations: 39.88 kB / 343 MB, free: 4.922 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.1277, allocations: 83.91 kB / 343.1 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002518/0.1279, allocations: 279.7 kB / 343.4 MB, free: 4.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002087/0.1282, allocations: 201.9 kB / 343.6 MB, free: 4.371 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1282, allocations: 4 kB / 343.6 MB, free: 4.367 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004469/0.1286, allocations: 95.84 kB / 343.7 MB, free: 4.273 MB / 286.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 (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.00144/0.1301, allocations: 1.192 MB / 344.9 MB, free: 3.043 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009907/0.1311, allocations: 0.5576 MB / 345.4 MB, free: 2.461 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1311, allocations: 0 / 345.4 MB, free: 2.461 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005531/0.1316, allocations: 370.3 kB / 345.8 MB, free: 2.074 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.1328, allocations: 272.8 kB / 346.1 MB, free: 1.809 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003981/0.1368, allocations: 2.693 MB / 348.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005238/0.1374, allocations: 0.8189 MB / 349.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001596/0.139, allocations: 0.751 MB / 350.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007837/0.1398, allocations: 334.8 kB / 350.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1398, allocations: 0 / 350.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1664, allocations: 12.67 MB / 363.3 MB, free: 232 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002463/0.1667, allocations: 177.5 kB / 363.5 MB, free: 15.98 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.11, allocations: 4 kB / 363.5 MB, free: 15.98 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat