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.001694/0.001694, allocations: 92.27 kB / 20.96 MB, free: 3.441 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.002053/0.002053, allocations: 156.9 kB / 24.26 MB, free: 148 kB / 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.492/1.492, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 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: 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.804e-06/1.804e-06, allocations: 0 / 272.2 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.204e-05/4.384e-05, allocations: 2.312 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004027/0.004071, allocations: 1.99 MB / 274.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003039/0.00711, allocations: 1.107 MB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.007318, allocations: 3.938 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.00758, allocations: 51.56 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001933/0.007773, allocations: 43.59 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007213/0.008494, allocations: 183.7 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007705/0.009265, allocations: 471.5 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003186/0.009583, allocations: 113.3 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001349/0.01093, allocations: 0.9203 MB / 277.1 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005056/0.01144, allocations: 235.3 kB / 277.3 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.01161, allocations: 40 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001311/0.01174, allocations: 44 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.01201, allocations: 159.4 kB / 277.5 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003003/0.01232, allocations: 139.5 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001311/0.01363, allocations: 0.9695 MB / 278.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.01363, allocations: 4 kB / 278.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.01364, allocations: 0 / 278.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.01366, allocations: 0 / 278.6 MB, free: 11.33 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.002104/0.01577, allocations: 0.8084 MB / 279.5 MB, free: 10.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.01582, allocations: 15.92 kB / 279.5 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000353/0.01617, allocations: 80.66 kB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006082/0.01678, allocations: 284.7 kB / 279.8 MB, free: 10.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.258e-05/0.01684, allocations: 25.03 kB / 279.9 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001037/0.01694, allocations: 36.38 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/0.01818, allocations: 0.5407 MB / 280.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.01819, allocations: 192 / 280.4 MB, free: 9.465 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-05/0.01827, allocations: 16.38 kB / 280.4 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.01829, allocations: 15.94 kB / 280.5 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009975/0.01929, allocations: 437.7 kB / 280.9 MB, free: 8.992 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.02162, allocations: 0.9614 MB / 281.8 MB, free: 7.992 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.02287, allocations: 487.4 kB / 282.3 MB, free: 7.496 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004377/0.0233, allocations: 232.7 kB / 282.6 MB, free: 7.254 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.02336, allocations: 4.281 kB / 282.6 MB, free: 7.25 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007799/0.02414, allocations: 407.2 kB / 283 MB, free: 6.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.545e-06/0.02415, allocations: 0 / 283 MB, free: 6.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001799/0.02594, allocations: 0.8594 MB / 283.8 MB, free: 5.926 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.02605, allocations: 118.7 kB / 283.9 MB, free: 5.785 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003989/0.02645, allocations: 301.7 kB / 284.2 MB, free: 5.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.286e-05/0.02653, allocations: 45.69 kB / 284.3 MB, free: 5.434 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.02671, allocations: 180.9 kB / 284.4 MB, free: 5.254 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.02685, allocations: 83.42 kB / 284.5 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003217/0.02717, allocations: 194.1 kB / 284.7 MB, free: 4.977 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.02736, allocations: 338.8 kB / 285 MB, free: 4.637 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004592/0.02782, allocations: 236.3 kB / 285.3 MB, free: 4.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.02835, allocations: 300.5 kB / 285.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.02936, allocations: 0.5262 MB / 286.1 MB, free: 3.504 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.02936, allocations: 7.938 kB / 286.1 MB, free: 3.496 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001431/0.0308, allocations: 0.729 MB / 286.8 MB, free: 2.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.851e-05/0.03086, allocations: 59.39 kB / 286.9 MB, free: 2.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.03087, allocations: 4.078 kB / 286.9 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.0309, allocations: 0 / 286.9 MB, free: 2.664 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.03107, allocations: 63.91 kB / 287 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.03108, allocations: 7.984 kB / 287 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.03132, allocations: 35.86 kB / 287 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003449/0.03166, allocations: 275.7 kB / 287.3 MB, free: 2.289 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.0004454/0.03211, allocations: 297 kB / 287.6 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.03226, allocations: 51.75 kB / 287.6 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/0.03234, allocations: 38.95 kB / 287.6 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.03235, allocations: 3.984 kB / 287.7 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.03236, allocations: 4 kB / 287.7 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.03236, allocations: 0 / 287.7 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005709/0.03293, allocations: 365 kB / 288 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.03294, allocations: 3.938 kB / 288 MB, free: 1.492 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.03306, allocations: 55.91 kB / 288.1 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.03306, allocations: 0 / 288.1 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-05/0.03315, allocations: 51.97 kB / 288.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.03315, allocations: 0 / 288.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.03315, allocations: 0 / 288.1 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001656/0.03481, allocations: 0.6762 MB / 288.8 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.03511, allocations: 131.6 kB / 288.9 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.03521, allocations: 20 kB / 288.9 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001649/0.03538, allocations: 19.98 kB / 289 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.03566, allocations: 91.89 kB / 289.1 MB, free: 420 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003229/0.03598, allocations: 287.7 kB / 289.3 MB, free: 132 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002551/0.03623, allocations: 201.1 kB / 289.5 MB, free: 15.94 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03623, allocations: 0 / 289.5 MB, free: 15.94 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000452/0.03669, allocations: 103.8 kB / 289.6 MB, free: 15.84 MB / 282.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.0002295/0.03692, allocations: 137.8 kB / 289.8 MB, free: 15.69 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00125/0.03817, allocations: 0.6573 MB / 290.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.03817, allocations: 0 / 290.4 MB, free: 14.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006637/0.03883, allocations: 414.1 kB / 290.8 MB, free: 14.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.04025, allocations: 378.8 kB / 291.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.04181, allocations: 0.7792 MB / 292 MB, free: 13.38 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.04207, allocations: 208.3 kB / 292.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.001615/0.04368, allocations: 0.7471 MB / 292.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008272/0.04451, allocations: 275.9 kB / 293.2 MB, free: 12.13 MB / 282.7 MB Notification: Performance of SimCode: time 1.473e-06/0.04451, allocations: 4 kB / 293.2 MB, free: 12.12 MB / 282.7 MB Notification: Performance of Templates: time 0.01976/0.06428, allocations: 11.45 MB / 304.7 MB, free: 0.5898 MB / 282.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.680513517931104]