Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009339/0.0009339, allocations: 80.8 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 171.5 kB / 24.91 MB, free: 8.781 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9229/0.9229, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 3.938 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.835e-05/1.969e-05, allocations: 6.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002354/0.002374, allocations: 2.037 MB / 275.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001711/0.004084, allocations: 1.13 MB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.004191, allocations: 3.938 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.004354, allocations: 51.5 kB / 276.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001009/0.004455, allocations: 51.62 kB / 276.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.00488, allocations: 183.6 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.005262, allocations: 467.6 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001663/0.005428, allocations: 120.7 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006331/0.006061, allocations: 0.8657 MB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.006315, allocations: 239.3 kB / 278.6 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.006377, allocations: 40 kB / 278.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.142e-05/0.006428, allocations: 44 kB / 278.6 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.006551, allocations: 155.5 kB / 278.8 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001266/0.006678, allocations: 143.5 kB / 278.9 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004852/0.007163, allocations: 0.7201 MB / 279.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.007165, allocations: 0 / 279.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.007167, allocations: 0 / 279.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.007173, allocations: 0 / 279.7 MB, free: 11.05 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.0007422/0.007916, allocations: 0.7327 MB / 280.4 MB, free: 10.29 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.007944, allocations: 8.031 kB / 280.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.008052, allocations: 68.89 kB / 280.5 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.008315, allocations: 264.6 kB / 280.7 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.00834, allocations: 25.03 kB / 280.8 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.008394, allocations: 36.38 kB / 280.8 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.008792, allocations: 362.4 kB / 281.1 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.008802, allocations: 192 / 281.1 MB, free: 9.492 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.008839, allocations: 16.38 kB / 281.2 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.008848, allocations: 15.94 kB / 281.2 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002111/0.009059, allocations: 167.9 kB / 281.3 MB, free: 9.285 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009064/0.009965, allocations: 0.6912 MB / 282 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000401/0.01037, allocations: 272.1 kB / 282.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.01048, allocations: 124.8 kB / 282.4 MB, free: 8.152 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.942e-05/0.01052, allocations: 4.281 kB / 282.4 MB, free: 8.148 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004638/0.01099, allocations: 263.1 kB / 282.7 MB, free: 7.867 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 2.274e-06/0.01099, allocations: 3.938 kB / 282.7 MB, free: 7.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0004572/0.01145, allocations: 424.2 kB / 283.1 MB, free: 7.406 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.01149, allocations: 110.8 kB / 283.2 MB, free: 7.273 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.01163, allocations: 264.8 kB / 283.5 MB, free: 7.004 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/0.01168, allocations: 41.7 kB / 283.5 MB, free: 6.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.922e-05/0.01174, allocations: 168.9 kB / 283.7 MB, free: 6.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.573e-05/0.01181, allocations: 83.34 kB / 283.7 MB, free: 6.707 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.01195, allocations: 134 kB / 283.9 MB, free: 6.57 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.013e-05/0.01203, allocations: 342.8 kB / 284.2 MB, free: 6.227 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.01215, allocations: 112.4 kB / 284.3 MB, free: 6.102 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.01228, allocations: 168.6 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002622/0.01254, allocations: 316.9 kB / 284.8 MB, free: 5.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.01255, allocations: 0 / 284.8 MB, free: 5.562 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0003532/0.0129, allocations: 352.1 kB / 285.1 MB, free: 5.188 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.01293, allocations: 63.41 kB / 285.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01294, allocations: 0 / 285.2 MB, free: 5.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.01295, allocations: 7.984 kB / 285.2 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.807e-05/0.01303, allocations: 39.83 kB / 285.2 MB, free: 5.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.01303, allocations: 3.938 kB / 285.3 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.01314, allocations: 31.94 kB / 285.3 MB, free: 5.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.01329, allocations: 251.7 kB / 285.5 MB, free: 4.785 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.000177/0.01347, allocations: 224 kB / 285.7 MB, free: 4.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.627e-05/0.01354, allocations: 39.91 kB / 285.8 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.099e-05/0.01358, allocations: 34.94 kB / 285.8 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.01358, allocations: 4 kB / 285.8 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.01358, allocations: 0 / 285.8 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.01359, allocations: 3.984 kB / 285.8 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002261/0.01382, allocations: 213.7 kB / 286 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.01382, allocations: 0 / 286 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.726e-05/0.01386, allocations: 27.91 kB / 286.1 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.01387, allocations: 0 / 286.1 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.0139, allocations: 23.91 kB / 286.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.0139, allocations: 4 kB / 286.1 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01391, allocations: 4 kB / 286.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.01424, allocations: 339.5 kB / 286.4 MB, free: 3.801 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.01437, allocations: 95.69 kB / 286.5 MB, free: 3.707 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.908e-05/0.01443, allocations: 15.94 kB / 286.5 MB, free: 3.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.077e-05/0.01451, allocations: 23.98 kB / 286.6 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.01462, allocations: 59.91 kB / 286.6 MB, free: 3.609 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/0.01478, allocations: 255.7 kB / 286.9 MB, free: 3.359 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.323e-05/0.01484, allocations: 86.75 kB / 287 MB, free: 3.273 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01484, allocations: 0 / 287 MB, free: 3.273 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.01509, allocations: 95.89 kB / 287 MB, free: 3.18 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.0001274/0.01521, allocations: 127 kB / 287.2 MB, free: 3.047 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003676/0.01558, allocations: 424.6 kB / 287.6 MB, free: 2.582 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.01559, allocations: 4 kB / 287.6 MB, free: 2.578 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.01579, allocations: 285.6 kB / 287.9 MB, free: 2.258 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.01636, allocations: 345 kB / 288.2 MB, free: 1.945 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000685/0.01705, allocations: 0.6452 MB / 288.9 MB, free: 1.258 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.572e-05/0.01711, allocations: 105.4 kB / 289 MB, free: 1.133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001104/0.01821, allocations: 0.7314 MB / 289.7 MB, free: 408 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006928/0.0189, allocations: 424.6 kB / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.0189, allocations: 0 / 290.1 MB, free: 15.98 MB / 282.7 MB Notification: Performance of Templates: time 0.01165/0.03055, allocations: 11.92 MB / 302 MB, free: 4.039 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.653922524303198]