Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008338/0.0008338, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003635/0.003635, allocations: 143.4 kB / 24.68 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8214/0.8214, allocations: 173.4 MB / 201.2 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.353e-05/2.514e-05, allocations: 2.281 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002107/0.002132, allocations: 1.977 MB / 321.7 MB, free: 3.883 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.00382, allocations: 1.072 MB / 322.7 MB, free: 2.805 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.003935, allocations: 7.938 kB / 322.7 MB, free: 2.797 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000163/0.004098, allocations: 51.5 kB / 322.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.949e-05/0.004187, allocations: 47.58 kB / 322.8 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.004639, allocations: 183.6 kB / 323 MB, free: 2.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.005024, allocations: 475.5 kB / 323.5 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001822/0.005206, allocations: 109.3 kB / 323.6 MB, free: 1.941 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000641/0.005847, allocations: 0.9164 MB / 324.5 MB, free: 1.023 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002511/0.006098, allocations: 239.3 kB / 324.7 MB, free: 0.7891 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.098e-05/0.006159, allocations: 40 kB / 324.8 MB, free: 0.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.718e-05/0.006216, allocations: 44 kB / 324.8 MB, free: 0.707 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.006336, allocations: 159.4 kB / 325 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.006457, allocations: 135.5 kB / 325.1 MB, free: 428 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006079/0.007065, allocations: 0.9657 MB / 326.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.007068, allocations: 4 kB / 326.1 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.007071, allocations: 4 kB / 326.1 MB, free: 15.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.007084, allocations: 0 / 326.1 MB, free: 15.44 MB / 298.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.0009348/0.008019, allocations: 0.8115 MB / 326.9 MB, free: 14.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.008053, allocations: 8.922 kB / 326.9 MB, free: 14.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.037e-05/0.008144, allocations: 48.66 kB / 326.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.008465, allocations: 292.6 kB / 327.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.008495, allocations: 25.03 kB / 327.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.008547, allocations: 36.38 kB / 327.3 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005672/0.009114, allocations: 0.5407 MB / 327.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.009125, allocations: 192 / 327.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.811e-05/0.009163, allocations: 16.36 kB / 327.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.009171, allocations: 11.94 kB / 327.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004737/0.009645, allocations: 441.7 kB / 328.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.01075, allocations: 0.9499 MB / 329.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.01138, allocations: 479.7 kB / 329.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.01159, allocations: 224.7 kB / 329.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.01162, allocations: 12.22 kB / 329.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003867/0.012, allocations: 402.6 kB / 330.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.643e-06/0.012, allocations: 0 / 330.3 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008802/0.01288, allocations: 0.8468 MB / 331.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.01294, allocations: 110.8 kB / 331.3 MB, free: 9.969 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.01315, allocations: 305.7 kB / 331.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.01319, allocations: 41.7 kB / 331.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.497e-05/0.01329, allocations: 196.8 kB / 331.8 MB, free: 9.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/0.01335, allocations: 87.36 kB / 331.9 MB, free: 9.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001622/0.01352, allocations: 190.1 kB / 332.1 MB, free: 9.141 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.01361, allocations: 338.8 kB / 332.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.01384, allocations: 240.3 kB / 332.7 MB, free: 8.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.01409, allocations: 296.5 kB / 333 MB, free: 8.242 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.01457, allocations: 0.5301 MB / 333.5 MB, free: 7.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.01458, allocations: 7.938 kB / 333.5 MB, free: 7.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006683/0.01524, allocations: 0.703 MB / 334.2 MB, free: 6.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.11e-05/0.01528, allocations: 59.41 kB / 334.2 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.01529, allocations: 4 kB / 334.3 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.01531, allocations: 7.938 kB / 334.3 MB, free: 6.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.638e-05/0.01539, allocations: 59.89 kB / 334.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.0154, allocations: 4 kB / 334.3 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.01551, allocations: 27.98 kB / 334.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001619/0.01567, allocations: 287.7 kB / 334.6 MB, free: 6.477 MB / 298.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.0002225/0.01589, allocations: 289 kB / 334.9 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.01594, allocations: 35.8 kB / 334.9 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.367e-05/0.01599, allocations: 34.91 kB / 335 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.01599, allocations: 4 kB / 335 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.016, allocations: 4 kB / 335 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.016, allocations: 3.984 kB / 335 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.01629, allocations: 349.1 kB / 335.3 MB, free: 5.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.0163, allocations: 7.938 kB / 335.3 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.01635, allocations: 55.95 kB / 335.4 MB, free: 5.656 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.01636, allocations: 4 kB / 335.4 MB, free: 5.652 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.063e-05/0.0164, allocations: 43.98 kB / 335.4 MB, free: 5.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.0164, allocations: 11.92 kB / 335.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.0164, allocations: 0 / 335.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.01701, allocations: 0.6721 MB / 336.1 MB, free: 4.883 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.01716, allocations: 127.6 kB / 336.3 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/0.01722, allocations: 16 kB / 336.3 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.164e-05/0.01729, allocations: 15.98 kB / 336.3 MB, free: 4.727 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001435/0.01743, allocations: 91.89 kB / 336.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.01758, allocations: 283.7 kB / 336.7 MB, free: 4.359 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000122/0.01771, allocations: 201.2 kB / 336.8 MB, free: 4.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01771, allocations: 4 kB / 336.9 MB, free: 4.156 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.01797, allocations: 95.89 kB / 336.9 MB, free: 4.062 MB / 298.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.0001314/0.0181, allocations: 141.8 kB / 337.1 MB, free: 3.918 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006012/0.0187, allocations: 0.6598 MB / 337.7 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01871, allocations: 0 / 337.7 MB, free: 3.211 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002958/0.019, allocations: 410 kB / 338.1 MB, free: 2.773 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006744/0.01968, allocations: 346.4 kB / 338.5 MB, free: 2.465 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008855/0.02056, allocations: 0.8131 MB / 339.3 MB, free: 1.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.0207, allocations: 204.2 kB / 339.5 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006598/0.02136, allocations: 375.6 kB / 339.9 MB, free: 1.016 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.02136, allocations: 0 / 339.9 MB, free: 1.016 MB / 298.7 MB Notification: Performance of Templates: time 0.007417/0.02878, allocations: 8.336 MB / 348.2 MB, free: 8.359 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.747923064976931]