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.001618/0.001618, allocations: 105.1 kB / 21.22 MB, free: 0.6211 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.001446/0.001446, allocations: 209.2 kB / 24.52 MB, free: 3.91 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.507/1.507, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.002092/0.002092, allocations: 67.89 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.289, allocations: 53.4 MB / 431.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003235/0.2923, allocations: 1.997 MB / 433.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.2945, allocations: 1.099 MB / 435 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.768e-05/0.2946, allocations: 0 / 435 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000187/0.2948, allocations: 55.5 kB / 435.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001151/0.2949, allocations: 39.66 kB / 435.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004894/0.2954, allocations: 183.7 kB / 435.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.2959, allocations: 475.5 kB / 435.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.2962, allocations: 111.5 kB / 435.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008772/0.297, allocations: 0.8383 MB / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000356/0.2974, allocations: 270.9 kB / 436.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001156/0.2975, allocations: 44 kB / 437 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.2976, allocations: 44 kB / 437 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.2978, allocations: 151.5 kB / 437.2 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000238/0.2981, allocations: 175.1 kB / 437.4 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008944/0.299, allocations: 0.9342 MB / 438.3 MB, free: 56 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.299, allocations: 4 kB / 438.3 MB, free: 52 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.299, allocations: 0 / 438.3 MB, free: 52 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.299, allocations: 0 / 438.3 MB, free: 52 kB / 334.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.001308/0.3003, allocations: 0.8046 MB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3003, allocations: 8.031 kB / 439.1 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.283e-05/0.3004, allocations: 8.844 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001072/0.3005, allocations: 74.72 kB / 439.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.3006, allocations: 48.66 kB / 439.2 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.3011, allocations: 285.3 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.3011, allocations: 25.03 kB / 439.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.011e-05/0.3012, allocations: 36.38 kB / 439.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009767/0.3022, allocations: 0.5362 MB / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3022, allocations: 0 / 440.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.174e-05/0.3022, allocations: 12 kB / 440.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.3022, allocations: 11.94 kB / 440.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007925/0.303, allocations: 437.8 kB / 440.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.3048, allocations: 0.9998 MB / 441.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.306, allocations: 478.5 kB / 442 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003902/0.3064, allocations: 236.7 kB / 442.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.198e-05/0.3064, allocations: 4.281 kB / 442.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006949/0.3071, allocations: 394.7 kB / 442.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.164e-06/0.3071, allocations: 0 / 442.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001496/0.3086, allocations: 0.8357 MB / 443.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.057e-05/0.3087, allocations: 110.8 kB / 443.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003158/0.309, allocations: 317.6 kB / 443.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.755e-05/0.3091, allocations: 37.7 kB / 443.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.3092, allocations: 184.9 kB / 444.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.3093, allocations: 83.42 kB / 444.2 MB, free: 9.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/0.3096, allocations: 182 kB / 444.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.3098, allocations: 338.8 kB / 444.7 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/0.3102, allocations: 236.2 kB / 444.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004822/0.3107, allocations: 291.9 kB / 445.2 MB, free: 8.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008487/0.3115, allocations: 0.5175 MB / 445.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3115, allocations: 0 / 445.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001198/0.3127, allocations: 0.6991 MB / 446.4 MB, free: 7.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.3128, allocations: 63.39 kB / 446.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3128, allocations: 160 / 446.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3128, allocations: 7.984 kB / 446.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.313, allocations: 59.91 kB / 446.6 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.313, allocations: 8.016 kB / 446.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001965/0.3132, allocations: 31.81 kB / 446.6 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/0.3135, allocations: 279.7 kB / 446.9 MB, free: 7.027 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.0003558/0.3139, allocations: 285.1 kB / 447.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.322e-05/0.3139, allocations: 31.81 kB / 447.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.837e-05/0.314, allocations: 46.94 kB / 447.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.314, allocations: 4 kB / 447.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.314, allocations: 0 / 447.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.314, allocations: 3.938 kB / 447.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005241/0.3146, allocations: 408.5 kB / 447.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3146, allocations: 0 / 447.6 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001147/0.3147, allocations: 51.97 kB / 447.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3147, allocations: 3.938 kB / 447.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-05/0.3148, allocations: 47.97 kB / 447.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.3148, allocations: 0 / 447.7 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3148, allocations: 4 kB / 447.7 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.3159, allocations: 0.6605 MB / 448.4 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002481/0.3161, allocations: 123.6 kB / 448.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.3162, allocations: 16 kB / 448.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001587/0.3164, allocations: 23.98 kB / 448.6 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002232/0.3166, allocations: 91.83 kB / 448.7 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002781/0.3169, allocations: 279.7 kB / 448.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002169/0.3171, allocations: 201.2 kB / 449.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3171, allocations: 0 / 449.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004059/0.3175, allocations: 107.8 kB / 449.2 MB, free: 4.566 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.001499/0.319, allocations: 1.235 MB / 450.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.3201, allocations: 0.6495 MB / 451.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3201, allocations: 3.938 kB / 451.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005435/0.3206, allocations: 401.9 kB / 451.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.3218, allocations: 334.5 kB / 451.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/0.3272, allocations: 3.803 MB / 455.6 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.3274, allocations: 196.2 kB / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00135/0.3288, allocations: 0.751 MB / 456.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007954/0.3296, allocations: 338.8 kB / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3296, allocations: 0 / 456.9 MB, free: 12.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03653/0.3661, allocations: 14.68 MB / 471.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.73, allocations: 8 kB / 471.6 MB, free: 13.85 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.218705721083097] Failed to read output from testmodel.py, exit status != 0: ['time', 'FF.RS1.TD1.x', 'FF.RS2.TD1.x'] 11.894865190959536 11.921208449 11.617264563 Calling exit ...