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.001358/0.001358, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001592/0.001592, allocations: 209.4 kB / 24.53 MB, free: 4.07 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.494/1.494, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.001831/0.001831, allocations: 59.91 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3061/0.308, allocations: 53.41 MB / 432 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003425/0.3114, allocations: 2.167 MB / 434.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.314, allocations: 1.173 MB / 435.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.3141, allocations: 7.938 kB / 435.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002003/0.3143, allocations: 43.58 kB / 435.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001181/0.3144, allocations: 43.62 kB / 435.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.315, allocations: 183.7 kB / 435.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005613/0.3155, allocations: 471.5 kB / 436 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.3158, allocations: 117.3 kB / 436.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000952/0.3167, allocations: 0.8344 MB / 437 MB, free: 1.629 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/0.3171, allocations: 271 kB / 437.3 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.195e-05/0.3172, allocations: 40 kB / 437.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.714e-05/0.3173, allocations: 44 kB / 437.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.3175, allocations: 155.4 kB / 437.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.3177, allocations: 214.8 kB / 437.7 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009478/0.3187, allocations: 0.9311 MB / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3187, allocations: 4 kB / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3187, allocations: 0 / 438.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.3187, allocations: 0 / 438.6 MB, free: 15.98 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.001408/0.3201, allocations: 0.8044 MB / 439.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.3201, allocations: 12.03 kB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.43e-05/0.3202, allocations: 8.844 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.3203, allocations: 74.72 kB / 439.5 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.3204, allocations: 52.64 kB / 439.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005015/0.3209, allocations: 285.3 kB / 439.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.321, allocations: 29.03 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.03e-05/0.321, allocations: 36.38 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009446/0.322, allocations: 489.7 kB / 440.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.322, allocations: 4 kB / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/0.3221, allocations: 12 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.3221, allocations: 8 kB / 440.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007968/0.3229, allocations: 374.4 kB / 440.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002063/0.3249, allocations: 1.093 MB / 441.9 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.3261, allocations: 419.1 kB / 442.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003627/0.3265, allocations: 169.3 kB / 442.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-05/0.3265, allocations: 4.281 kB / 442.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007197/0.3272, allocations: 339.3 kB / 442.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.186e-06/0.3272, allocations: 0 / 442.8 MB, free: 11.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001579/0.3288, allocations: 0.7275 MB / 443.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.688e-05/0.3289, allocations: 114.8 kB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3293, allocations: 309.7 kB / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.425e-05/0.3293, allocations: 41.7 kB / 444 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.3295, allocations: 180.9 kB / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.3296, allocations: 87.41 kB / 444.2 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.3299, allocations: 182 kB / 444.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002246/0.3302, allocations: 338.8 kB / 444.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.3305, allocations: 180.8 kB / 444.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.331, allocations: 236.5 kB / 445.2 MB, free: 9.223 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009028/0.3319, allocations: 0.521 MB / 445.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.3319, allocations: 4 kB / 445.7 MB, free: 8.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001219/0.3331, allocations: 0.6372 MB / 446.3 MB, free: 8.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.401e-05/0.3332, allocations: 63.39 kB / 446.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.3332, allocations: 4 kB / 446.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3332, allocations: 3.938 kB / 446.4 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3334, allocations: 59.91 kB / 446.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.394e-05/0.3334, allocations: 7.938 kB / 446.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002236/0.3337, allocations: 35.84 kB / 446.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003473/0.334, allocations: 283.7 kB / 446.8 MB, free: 7.543 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.0004914/0.3345, allocations: 277.1 kB / 447 MB, free: 7.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.871e-05/0.3346, allocations: 31.81 kB / 447.1 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.3347, allocations: 42.95 kB / 447.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.377e-06/0.3347, allocations: 11.98 kB / 447.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/0.3347, allocations: 0 / 447.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3347, allocations: 11.86 kB / 447.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006772/0.3354, allocations: 444.3 kB / 447.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3354, allocations: 0 / 447.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.3356, allocations: 55.91 kB / 447.6 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.3356, allocations: 3.984 kB / 447.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.468e-05/0.3357, allocations: 43.98 kB / 447.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.3357, allocations: 0 / 447.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.3357, allocations: 0 / 447.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.3368, allocations: 0.6103 MB / 448.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003303/0.3371, allocations: 123.7 kB / 448.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001187/0.3372, allocations: 19.98 kB / 448.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3374, allocations: 12 kB / 448.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002503/0.3376, allocations: 95.83 kB / 448.5 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/0.338, allocations: 283.7 kB / 448.8 MB, free: 5.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002413/0.3382, allocations: 205.2 kB / 449 MB, free: 5.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3382, allocations: 0 / 449 MB, free: 5.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004769/0.3387, allocations: 99.84 kB / 449.1 MB, free: 5.113 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.001603/0.3403, allocations: 1.185 MB / 450.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.3413, allocations: 0.5297 MB / 450.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.3413, allocations: 0 / 450.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.3419, allocations: 354.5 kB / 451.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.3432, allocations: 337.5 kB / 451.5 MB, free: 2.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.3488, allocations: 3.521 MB / 455 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.3493, allocations: 0.8033 MB / 455.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00147/0.3508, allocations: 0.7549 MB / 456.6 MB, free: 13.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000824/0.3516, allocations: 338.8 kB / 456.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of SimCode: time 9.81e-07/0.3516, allocations: 0 / 456.9 MB, free: 13.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03914/0.3907, allocations: 13.99 MB / 470.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.57, allocations: 12.06 kB / 470.9 MB, free: 15 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.01680345798377] Failed to read output from testmodel.py, exit status != 0: ['time', 'FF.RS1.TD1.x', 'FF.RS2.TD1.x'] 11.730562922020908 11.745633871 11.423823694 Calling exit ...