Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001582/0.001582, allocations: 92.48 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002065/0.002066, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002825, allocations: 8 kB / 306.7 MB, free: 1.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1325, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002226/0.1348, allocations: 1.748 MB / 359.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002079/0.1369, allocations: 1.096 MB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.338e-05/0.137, allocations: 4 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001419/0.1371, allocations: 31.77 kB / 361.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001039/0.1373, allocations: 39.81 kB / 361.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1376, allocations: 119.7 kB / 361.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.138, allocations: 256.1 kB / 361.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002495/0.1382, allocations: 127.8 kB / 361.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005915/0.1388, allocations: 0.5185 MB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002874/0.1391, allocations: 247.4 kB / 362.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.984e-05/0.1392, allocations: 8 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.109e-05/0.1393, allocations: 12 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.1394, allocations: 127.6 kB / 362.5 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000101/0.1395, allocations: 93.52 kB / 362.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006634/0.1402, allocations: 0.7675 MB / 363.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1402, allocations: 4 kB / 363.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1402, allocations: 0 / 363.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1403, allocations: 0 / 363.4 MB, free: 8.582 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.001045/0.1413, allocations: 0.7249 MB / 364.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.1414, allocations: 8.031 kB / 364.1 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001164/0.1415, allocations: 74.53 kB / 364.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1416, allocations: 43.53 kB / 364.2 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000528/0.1421, allocations: 354.1 kB / 364.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.1422, allocations: 28.66 kB / 364.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.229e-05/0.1423, allocations: 39.98 kB / 364.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00088/0.1432, allocations: 477.8 kB / 365.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.1432, allocations: 0 / 365.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.1433, allocations: 23.98 kB / 365.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1433, allocations: 8 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007897/0.1441, allocations: 386.3 kB / 365.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.146, allocations: 1.109 MB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.147, allocations: 471.5 kB / 367.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.167e-05/0.1471, allocations: 4.281 kB / 367.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005517/0.1476, allocations: 351.1 kB / 367.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 1.743e-06/0.1476, allocations: 0 / 367.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001374/0.149, allocations: 0.7383 MB / 368.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.857e-05/0.1491, allocations: 118.8 kB / 368.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.1494, allocations: 298.4 kB / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.1495, allocations: 41.7 kB / 368.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.1496, allocations: 180.7 kB / 368.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1498, allocations: 75.16 kB / 368.9 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.654e-05/0.1498, allocations: 8 kB / 368.9 MB, free: 2.832 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.15, allocations: 350.7 kB / 369.2 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003574/0.1503, allocations: 176.8 kB / 369.4 MB, free: 2.309 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003906/0.1507, allocations: 244.5 kB / 369.6 MB, free: 2.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004086/0.1511, allocations: 257.9 kB / 369.9 MB, free: 1.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.1512, allocations: 4 kB / 369.9 MB, free: 1.785 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001095/0.1523, allocations: 0.6526 MB / 370.5 MB, free: 1.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.1523, allocations: 63.39 kB / 370.6 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1523, allocations: 3.938 kB / 370.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.1524, allocations: 4 kB / 370.6 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.1525, allocations: 63.89 kB / 370.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.1525, allocations: 8.031 kB / 370.7 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002957/0.1528, allocations: 59.73 kB / 370.7 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.1531, allocations: 275.7 kB / 371 MB, free: 0.6328 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.0003647/0.1535, allocations: 293.1 kB / 371.3 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.908e-05/0.1536, allocations: 31.62 kB / 371.3 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.399e-05/0.1536, allocations: 38.94 kB / 371.3 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1536, allocations: 4 kB / 371.4 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.1536, allocations: 0 / 371.4 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1537, allocations: 0 / 371.4 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1849/0.3386, allocations: 478.2 kB / 371.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/0.3387, allocations: 0.9062 kB / 371.8 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00017/0.3388, allocations: 49 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/0.3388, allocations: 1.906 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.339, allocations: 47.2 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.339, allocations: 2.375 kB / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.339, allocations: 0 / 371.9 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001225/0.3402, allocations: 0.6168 MB / 372.5 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.3406, allocations: 193.5 kB / 372.7 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3407, allocations: 20.66 kB / 372.7 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.3409, allocations: 43.7 kB / 372.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002191/0.3412, allocations: 87.61 kB / 372.9 MB, free: 18.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/0.3415, allocations: 284.1 kB / 373.2 MB, free: 18.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002047/0.3417, allocations: 199.6 kB / 373.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3417, allocations: 0 / 373.3 MB, free: 18.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004715/0.3422, allocations: 95.53 kB / 373.4 MB, free: 18.77 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.001389/0.3435, allocations: 1.195 MB / 374.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.3447, allocations: 0.5567 MB / 375.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3447, allocations: 0 / 375.2 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000568/0.3453, allocations: 368.3 kB / 375.6 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.3465, allocations: 290.2 kB / 375.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/0.3502, allocations: 2.682 MB / 378.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.3506, allocations: 0.8235 MB / 379.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001289/0.3519, allocations: 0.7517 MB / 380.1 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006953/0.3526, allocations: 331 kB / 380.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of SimCode: time 1.703e-06/0.3526, allocations: 0 / 380.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.3784, allocations: 12.68 MB / 393.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001249/0.3786, allocations: 178.5 kB / 393.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.336, allocations: 3.828 kB / 393.3 MB, free: 10.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop_fmu --startTime=0 --stopTime=250 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat does not exist to compare? outputFormat=mat