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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001788/0.001788, allocations: 118.3 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002339/0.002339, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.4 MB / 254.7 MB, free: 14.83 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 67.89 kB / 373.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1127, allocations: 53.37 MB / 427.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003577/0.1163, allocations: 2.156 MB / 429.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002598/0.1189, allocations: 1.161 MB / 430.4 MB, free: 1.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.119, allocations: 7.938 kB / 430.4 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002181/0.1192, allocations: 51.56 kB / 430.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.1194, allocations: 47.58 kB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004986/0.1199, allocations: 163.8 kB / 430.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.1203, allocations: 467.6 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1206, allocations: 120.9 kB / 431.2 MB, free: 420 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2483/0.3689, allocations: 0.8392 MB / 432.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004204/0.3693, allocations: 265.9 kB / 432.3 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.3694, allocations: 42.47 kB / 432.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.814e-05/0.3695, allocations: 42.34 kB / 432.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001685/0.3697, allocations: 151.8 kB / 432.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.3699, allocations: 221.8 kB / 432.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008882/0.3708, allocations: 0.9283 MB / 433.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.3708, allocations: 0.5 kB / 433.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3708, allocations: 3.469 kB / 433.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.3708, allocations: 0.5312 kB / 433.7 MB, free: 7.758 MB / 350.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.001143/0.3719, allocations: 0.8793 MB / 434.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.372, allocations: 10.72 kB / 434.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.825e-05/0.372, allocations: 9.938 kB / 434.6 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.099e-05/0.3721, allocations: 71.56 kB / 434.7 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.3722, allocations: 49.03 kB / 434.7 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.3726, allocations: 355.4 kB / 435.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.385e-05/0.3726, allocations: 27.31 kB / 435.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.049e-05/0.3727, allocations: 34.27 kB / 435.1 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000929/0.3736, allocations: 493.4 kB / 435.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.3737, allocations: 1.594 kB / 435.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.741e-05/0.3737, allocations: 14.38 kB / 435.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.3737, allocations: 10.17 kB / 435.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007732/0.3745, allocations: 379 kB / 436 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001854/0.3764, allocations: 1.113 MB / 437.1 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.3775, allocations: 422.7 kB / 437.5 MB, free: 6.523 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000354/0.3778, allocations: 171.5 kB / 437.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.397e-05/0.3779, allocations: 3.719 kB / 437.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006627/0.3786, allocations: 338.8 kB / 438 MB, free: 6.469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.953e-06/0.3786, allocations: 1.406 kB / 438 MB, free: 6.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001542/0.3801, allocations: 0.7393 MB / 438.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3801, allocations: 109.8 kB / 438.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.3805, allocations: 306.2 kB / 439.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.292e-05/0.3805, allocations: 40.03 kB / 439.2 MB, free: 6.074 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3806, allocations: 182.8 kB / 439.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/0.3807, allocations: 87.8 kB / 439.5 MB, free: 5.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002968/0.381, allocations: 184.6 kB / 439.7 MB, free: 5.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.523e-05/0.3811, allocations: 344 kB / 440 MB, free: 5.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.3815, allocations: 180.1 kB / 440.2 MB, free: 5.582 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.3819, allocations: 238.4 kB / 440.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.3829, allocations: 0.5237 MB / 440.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.3829, allocations: 1.094 kB / 440.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001148/0.3841, allocations: 0.6449 MB / 441.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.275e-05/0.3841, allocations: 61.23 kB / 441.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3841, allocations: 1.25 kB / 441.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.3842, allocations: 7.25 kB / 441.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.3843, allocations: 60.84 kB / 441.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.3843, allocations: 2.625 kB / 441.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.3845, allocations: 32.58 kB / 441.7 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/0.3848, allocations: 282.6 kB / 442 MB, free: 4.93 MB / 350.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.0003148/0.3851, allocations: 282.6 kB / 442.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.439e-05/0.3852, allocations: 33.02 kB / 442.3 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.646e-05/0.3853, allocations: 42.08 kB / 442.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3853, allocations: 6.844 kB / 442.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.3853, allocations: 0 / 442.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3853, allocations: 5.812 kB / 442.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006035/0.3859, allocations: 480.3 kB / 442.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.3859, allocations: 0 / 442.8 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.386, allocations: 55.64 kB / 442.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.386, allocations: 1.938 kB / 442.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.3861, allocations: 46.41 kB / 442.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.3861, allocations: 1.719 kB / 442.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.3861, allocations: 1.125 kB / 442.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.3872, allocations: 0.6067 MB / 443.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002328/0.3874, allocations: 200.2 kB / 443.7 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.62e-05/0.3875, allocations: 15.84 kB / 443.8 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.3877, allocations: 19.44 kB / 443.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.3879, allocations: 87.28 kB / 443.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002622/0.3882, allocations: 287.2 kB / 444.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001757/0.3884, allocations: 201.5 kB / 444.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3884, allocations: 1.281 kB / 444.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004264/0.3888, allocations: 99.08 kB / 444.4 MB, free: 3.777 MB / 350.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.001333/0.3901, allocations: 1.187 MB / 445.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009422/0.3911, allocations: 0.5323 MB / 446.2 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3911, allocations: 3.938 kB / 446.2 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.3916, allocations: 358.5 kB / 446.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00136/0.393, allocations: 343.7 kB / 446.8 MB, free: 2.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005783/0.3988, allocations: 3.52 MB / 450.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.3991, allocations: 0.8053 MB / 451.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001846/0.401, allocations: 0.7499 MB / 451.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000891/0.4019, allocations: 339.4 kB / 452.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of SimCode: time 1.443e-06/0.4019, allocations: 0 / 452.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03432/0.4362, allocations: 13.72 MB / 466 MB, free: 8.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.828, allocations: 8.906 kB / 466 MB, free: 8.621 MB / 366.1 MB " [Timeout remaining time 651] (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/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 --stepSize=0.0490773 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.267355385003611] Failed to read output from testmodel.py, exit status != 0: ['time', 'FF.RS1.TD1.x', 'FF.RS2.TD1.x'] 8.959333500999492 8.981045174 8.60617055 Calling exit ...