Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_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.001259/0.001259, allocations: 92.53 kB / 16.3 MB, free: 5.539 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.001411/0.001411, allocations: 185.8 kB / 17.2 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002942/0.0002943, allocations: 8 kB / 300.8 MB, free: 6.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1183, allocations: 50.41 MB / 351.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002473/0.1208, allocations: 1.735 MB / 353 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002374/0.1232, allocations: 1.065 MB / 354 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002124/0.1234, allocations: 11.94 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002326/0.1237, allocations: 31.77 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.1239, allocations: 35.88 kB / 354.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005698/0.1245, allocations: 115.8 kB / 354.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005043/0.125, allocations: 264 kB / 354.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.1253, allocations: 116.1 kB / 354.6 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007374/0.126, allocations: 0.5185 MB / 355.1 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.1264, allocations: 247.4 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.1266, allocations: 12 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.444e-05/0.1266, allocations: 8 kB / 355.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001787/0.1268, allocations: 127.7 kB / 355.5 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.127, allocations: 93.45 kB / 355.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007378/0.1277, allocations: 0.7791 MB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1278, allocations: 0 / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1278, allocations: 0 / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.1278, allocations: 0 / 356.4 MB, free: 14.77 MB / 302.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.001841/0.1297, allocations: 0.7242 MB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.126e-05/0.1297, allocations: 12.03 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003079/0.13, allocations: 70.53 kB / 357.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000248/0.1303, allocations: 47.53 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008494/0.1312, allocations: 342.2 kB / 357.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.897e-05/0.1312, allocations: 24.66 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.1314, allocations: 36 kB / 357.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1325, allocations: 493.6 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.1325, allocations: 8 kB / 358.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.795e-05/0.1326, allocations: 12 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.1326, allocations: 8 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009285/0.1336, allocations: 386.4 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.1361, allocations: 1.109 MB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.1373, allocations: 478.6 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.649e-05/0.1374, allocations: 4.281 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000728/0.1381, allocations: 347 kB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.715e-06/0.1381, allocations: 0 / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001671/0.1398, allocations: 0.7461 MB / 361.2 MB, free: 9.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.1399, allocations: 110.8 kB / 361.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005044/0.1404, allocations: 310.4 kB / 361.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.249e-05/0.1405, allocations: 37.7 kB / 361.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.1408, allocations: 168.7 kB / 361.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.1409, allocations: 83.08 kB / 361.8 MB, free: 9.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.184e-05/0.141, allocations: 8 kB / 361.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002358/0.1412, allocations: 338.8 kB / 362.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.1417, allocations: 188.8 kB / 362.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004467/0.1421, allocations: 236.5 kB / 362.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004778/0.1426, allocations: 266 kB / 362.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.1426, allocations: 4 kB / 362.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001258/0.1439, allocations: 0.6487 MB / 363.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.628e-05/0.144, allocations: 67.34 kB / 363.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.144, allocations: 0 / 363.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.144, allocations: 4 kB / 363.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1442, allocations: 59.92 kB / 363.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.1442, allocations: 7.938 kB / 363.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004249/0.1447, allocations: 55.75 kB / 363.7 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.145, allocations: 283.9 kB / 364 MB, free: 6.832 MB / 302.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.0005172/0.1455, allocations: 285.1 kB / 364.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.805e-05/0.1456, allocations: 35.58 kB / 364.3 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.756e-05/0.1457, allocations: 34.95 kB / 364.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1457, allocations: 4 kB / 364.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.1457, allocations: 0 / 364.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1457, allocations: 3.984 kB / 364.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007557/0.1465, allocations: 481.2 kB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.1465, allocations: 3.984 kB / 364.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.1466, allocations: 47.91 kB / 364.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.1467, allocations: 11.95 kB / 364.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.933e-05/0.1467, allocations: 43.98 kB / 364.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.063e-06/0.1468, allocations: 7.984 kB / 364.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1468, allocations: 3.984 kB / 364.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.1479, allocations: 0.6178 MB / 365.5 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004119/0.1483, allocations: 188.8 kB / 365.7 MB, free: 4.965 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.1485, allocations: 19.95 kB / 365.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002659/0.1487, allocations: 43.81 kB / 365.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.149, allocations: 87.91 kB / 365.9 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000305/0.1493, allocations: 279.7 kB / 366.1 MB, free: 4.543 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002296/0.1495, allocations: 201.9 kB / 366.3 MB, free: 4.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1495, allocations: 4 kB / 366.3 MB, free: 4.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005538/0.1501, allocations: 95.84 kB / 366.4 MB, free: 4.25 MB / 302.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.001731/0.1518, allocations: 1.188 MB / 367.6 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001203/0.1531, allocations: 0.5614 MB / 368.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.1531, allocations: 0 / 368.2 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005922/0.1537, allocations: 362.4 kB / 368.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.1551, allocations: 285.7 kB / 368.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2687/0.4238, allocations: 2.685 MB / 371.5 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005773/0.4244, allocations: 0.8188 MB / 372.3 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001914/0.4263, allocations: 0.745 MB / 373.1 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008727/0.4272, allocations: 332.5 kB / 373.4 MB, free: 22.18 MB / 302.1 MB Notification: Performance of SimCode: time 1.713e-06/0.4272, allocations: 0 / 373.4 MB, free: 22.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03401/0.4612, allocations: 12.67 MB / 386.1 MB, free: 18.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.4615, allocations: 179 kB / 386.2 MB, free: 18.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/2.614, allocations: 0 / 386.2 MB, free: 18.1 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat