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.001114/0.001114, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001615/0.001615, allocations: 160.2 kB / 24.91 MB, free: 8.754 MB / 18.57 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.05/1.05, allocations: 177 MB / 205.2 MB, free: 4.996 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") translateModel(Modelica.Electrical.Digital.Examples.FlipFlop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5094,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 3.938 kB / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.713e-05, allocations: 2.312 kB / 273.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002374/0.002391, allocations: 2.083 MB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.004102, allocations: 1.138 MB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.781e-05/0.00418, allocations: 4 kB / 276.6 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002388/0.004419, allocations: 43.58 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 8.972e-05/0.004509, allocations: 51.58 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003644/0.004873, allocations: 187.6 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003334/0.005206, allocations: 471.5 kB / 277.4 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.005377, allocations: 116.5 kB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000602/0.005979, allocations: 0.8696 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.006199, allocations: 235.3 kB / 278.6 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.97e-05/0.006258, allocations: 44 kB / 278.6 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.083e-05/0.006309, allocations: 44 kB / 278.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.006425, allocations: 155.4 kB / 278.8 MB, free: 11.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.006544, allocations: 143.5 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004349/0.006979, allocations: 0.7085 MB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00698, allocations: 0 / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006981, allocations: 8 kB / 279.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.006986, allocations: 0 / 279.7 MB, free: 10.71 MB / 266.7 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.0008643/0.00785, allocations: 0.7288 MB / 280.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.007881, allocations: 11.98 kB / 280.4 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.333e-05/0.007975, allocations: 68.88 kB / 280.5 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002526/0.008227, allocations: 264.6 kB / 280.8 MB, free: 9.578 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.008254, allocations: 21.03 kB / 280.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.678e-05/0.008301, allocations: 40.38 kB / 280.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003939/0.008695, allocations: 366.4 kB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.008705, allocations: 4.188 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.00874, allocations: 16.38 kB / 281.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.008749, allocations: 11.94 kB / 281.2 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.008954, allocations: 171.8 kB / 281.4 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008534/0.009807, allocations: 0.6873 MB / 282.1 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.0102, allocations: 273.3 kB / 282.3 MB, free: 7.934 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.01032, allocations: 124.7 kB / 282.4 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.01035, allocations: 8.281 kB / 282.5 MB, free: 7.789 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/0.01059, allocations: 263.1 kB / 282.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.933e-06/0.01059, allocations: 0 / 282.7 MB, free: 7.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0004474/0.01104, allocations: 424.2 kB / 283.1 MB, free: 7.051 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.01109, allocations: 110.8 kB / 283.2 MB, free: 6.918 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.01129, allocations: 264.8 kB / 283.5 MB, free: 6.648 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.671e-05/0.01133, allocations: 45.69 kB / 283.5 MB, free: 6.598 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/0.01141, allocations: 160.9 kB / 283.7 MB, free: 6.438 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.843e-05/0.01147, allocations: 91.31 kB / 283.8 MB, free: 6.348 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.01161, allocations: 130 kB / 283.9 MB, free: 6.215 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.98e-05/0.01169, allocations: 342.8 kB / 284.2 MB, free: 5.871 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.01181, allocations: 116.3 kB / 284.4 MB, free: 5.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.01195, allocations: 164.6 kB / 284.5 MB, free: 5.555 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.01222, allocations: 317.5 kB / 284.8 MB, free: 5.203 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.01223, allocations: 4 kB / 284.8 MB, free: 5.199 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003539/0.01258, allocations: 359.2 kB / 285.2 MB, free: 4.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.477e-05/0.01263, allocations: 67.39 kB / 285.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01263, allocations: 0 / 285.2 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.01265, allocations: 4 kB / 285.3 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.01277, allocations: 55.81 kB / 285.3 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.01278, allocations: 4 kB / 285.3 MB, free: 4.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.445e-05/0.01287, allocations: 23.94 kB / 285.3 MB, free: 4.656 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.01303, allocations: 255.8 kB / 285.6 MB, free: 4.406 MB / 266.7 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.0001637/0.01319, allocations: 223.9 kB / 285.8 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.626e-05/0.01325, allocations: 39.91 kB / 285.8 MB, free: 4.125 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.536e-05/0.01329, allocations: 30.95 kB / 285.9 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.0133, allocations: 4 kB / 285.9 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.0133, allocations: 4 kB / 285.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.0133, allocations: 7.984 kB / 285.9 MB, free: 4.078 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.01353, allocations: 201.7 kB / 286.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.01353, allocations: 0 / 286.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.498e-05/0.01361, allocations: 43.88 kB / 286.1 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.01362, allocations: 4 kB / 286.1 MB, free: 3.816 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.698e-05/0.01365, allocations: 19.92 kB / 286.2 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.01366, allocations: 3.984 kB / 286.2 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.01366, allocations: 3.938 kB / 286.2 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003495/0.01401, allocations: 340.8 kB / 286.5 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001332/0.01414, allocations: 103.7 kB / 286.6 MB, free: 3.312 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/0.0142, allocations: 23.94 kB / 286.6 MB, free: 3.289 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.495e-05/0.01428, allocations: 19.98 kB / 286.6 MB, free: 3.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.01442, allocations: 59.91 kB / 286.7 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/0.01458, allocations: 255.7 kB / 286.9 MB, free: 2.961 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.897e-05/0.01464, allocations: 74.78 kB / 287 MB, free: 2.891 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01464, allocations: 0 / 287 MB, free: 2.891 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.01484, allocations: 95.89 kB / 287.1 MB, free: 2.797 MB / 266.7 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.0001262/0.01497, allocations: 127 kB / 287.2 MB, free: 2.664 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003963/0.01537, allocations: 427 kB / 287.7 MB, free: 2.195 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.01537, allocations: 0 / 287.7 MB, free: 2.195 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.01559, allocations: 289.9 kB / 287.9 MB, free: 1.871 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006179/0.01621, allocations: 355 kB / 288.3 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006722/0.01688, allocations: 0.6455 MB / 288.9 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.262e-05/0.01694, allocations: 113 kB / 289 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000897/0.01784, allocations: 0.7198 MB / 289.8 MB, free: 8 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1032/0.121, allocations: 410.4 kB / 290.2 MB, free: 25.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.823e-06/0.121, allocations: 0 / 290.2 MB, free: 25.27 MB / 266.7 MB Notification: Performance of Templates: time 0.01518/0.1362, allocations: 11.91 MB / 302.1 MB, free: 21.63 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.86835002200678]