Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001084/0.001084, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001047/0.001047, allocations: 170.1 kB / 25.33 MB, free: 8.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9068/0.9068, allocations: 158.6 MB / 187.2 MB, free: 2.926 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 251 MB, free: 7.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.357e-05, allocations: 2.312 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002523/0.002546, allocations: 2.052 MB / 253.1 MB, free: 5.449 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.004571, allocations: 1.131 MB / 254.2 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.004707, allocations: 0 / 254.2 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.004893, allocations: 51.56 kB / 254.3 MB, free: 4.258 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.557e-05/0.004989, allocations: 47.59 kB / 254.3 MB, free: 4.211 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005333/0.005522, allocations: 187.6 kB / 254.5 MB, free: 4.027 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.005893, allocations: 467.5 kB / 255 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.006086, allocations: 117.2 kB / 255.1 MB, free: 3.457 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009623/0.007049, allocations: 0.9125 MB / 256 MB, free: 2.543 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002296/0.007278, allocations: 239.3 kB / 256.2 MB, free: 2.305 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 7.117e-05/0.007349, allocations: 40 kB / 256.3 MB, free: 2.266 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.072e-05/0.00741, allocations: 44 kB / 256.3 MB, free: 2.223 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.007548, allocations: 159.4 kB / 256.5 MB, free: 2.066 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.007679, allocations: 143.5 kB / 256.6 MB, free: 1.926 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000877/0.008556, allocations: 0.7163 MB / 257.3 MB, free: 1.207 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.008559, allocations: 3.938 kB / 257.3 MB, free: 1.203 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.008559, allocations: 0 / 257.3 MB, free: 1.203 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.008565, allocations: 0 / 257.3 MB, free: 1.203 MB / 234.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.0008494/0.009415, allocations: 0.9084 MB / 258.2 MB, free: 248 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.009453, allocations: 11.98 kB / 258.2 MB, free: 236 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000124/0.009577, allocations: 80.66 kB / 258.3 MB, free: 156 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.009894, allocations: 297 kB / 258.6 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.945e-05/0.009924, allocations: 29.03 kB / 258.6 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.009977, allocations: 36.38 kB / 258.7 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.0105, allocations: 446.5 kB / 259.1 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.01051, allocations: 192 / 259.1 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.881e-05/0.01055, allocations: 14.81 kB / 259.1 MB, free: 15.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.01057, allocations: 8 kB / 259.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000336/0.0109, allocations: 279.1 kB / 259.4 MB, free: 15 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.01209, allocations: 0.9529 MB / 260.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007304/0.01282, allocations: 363.5 kB / 260.7 MB, free: 13.63 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.01299, allocations: 171.5 kB / 260.9 MB, free: 13.45 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.691e-05/0.01305, allocations: 12.27 kB / 260.9 MB, free: 13.44 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003167/0.01337, allocations: 344.1 kB / 261.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 1.983e-06/0.01337, allocations: 0 / 261.2 MB, free: 13.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0008092/0.01418, allocations: 0.6829 MB / 261.9 MB, free: 12.35 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.01423, allocations: 110.8 kB / 262 MB, free: 12.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.01446, allocations: 340.1 kB / 262.4 MB, free: 11.87 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.0145, allocations: 41.7 kB / 262.4 MB, free: 11.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.01462, allocations: 235.6 kB / 262.6 MB, free: 11.59 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.01469, allocations: 87.42 kB / 262.7 MB, free: 11.5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.01488, allocations: 195.7 kB / 262.9 MB, free: 11.3 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.01502, allocations: 0.5118 MB / 263.4 MB, free: 10.78 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.0152, allocations: 168.3 kB / 263.6 MB, free: 10.6 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002102/0.01541, allocations: 238.7 kB / 263.8 MB, free: 10.34 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.01578, allocations: 401 kB / 264.2 MB, free: 9.898 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01578, allocations: 4 kB / 264.2 MB, free: 9.895 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000602/0.01638, allocations: 0.5859 MB / 264.8 MB, free: 9.277 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.973e-05/0.01643, allocations: 59.41 kB / 264.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.01644, allocations: 0 / 264.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.01646, allocations: 4 kB / 264.9 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.999e-05/0.01656, allocations: 67.94 kB / 264.9 MB, free: 9.137 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.397e-06/0.01657, allocations: 7.922 kB / 264.9 MB, free: 9.129 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000104/0.01667, allocations: 31.83 kB / 265 MB, free: 9.098 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001789/0.01685, allocations: 283.7 kB / 265.2 MB, free: 8.82 MB / 250.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.0001816/0.01703, allocations: 263.9 kB / 265.5 MB, free: 8.539 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.0171, allocations: 51.81 kB / 265.5 MB, free: 8.488 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.348e-05/0.01714, allocations: 38.95 kB / 265.6 MB, free: 8.453 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.01714, allocations: 7.938 kB / 265.6 MB, free: 8.445 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.01715, allocations: 0 / 265.6 MB, free: 8.445 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.01715, allocations: 3.938 kB / 265.6 MB, free: 8.441 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.01742, allocations: 336.2 kB / 265.9 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01743, allocations: 0 / 265.9 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.967e-05/0.0175, allocations: 55.91 kB / 266 MB, free: 8.023 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.0175, allocations: 4 kB / 266 MB, free: 8.02 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.01755, allocations: 47.97 kB / 266 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.01755, allocations: 160 / 266 MB, free: 7.973 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01755, allocations: 8 kB / 266 MB, free: 7.965 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005807/0.01813, allocations: 0.5739 MB / 266.6 MB, free: 7.344 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.01829, allocations: 131.6 kB / 266.7 MB, free: 7.215 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.866e-05/0.01835, allocations: 20 kB / 266.8 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.01843, allocations: 16 kB / 266.8 MB, free: 7.18 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.0186, allocations: 99.88 kB / 266.9 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/0.01878, allocations: 283.7 kB / 267.1 MB, free: 6.805 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001256/0.01891, allocations: 205.1 kB / 267.3 MB, free: 6.605 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01891, allocations: 0 / 267.3 MB, free: 6.605 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002593/0.01917, allocations: 99.83 kB / 267.4 MB, free: 6.508 MB / 250.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.0001493/0.01932, allocations: 145.8 kB / 267.6 MB, free: 6.352 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000839/0.02016, allocations: 0.5525 MB / 268.1 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.02016, allocations: 0 / 268.1 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002769/0.02044, allocations: 361.8 kB / 268.5 MB, free: 5.352 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007149/0.02115, allocations: 380.6 kB / 268.9 MB, free: 4.992 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008192/0.02197, allocations: 0.6979 MB / 269.6 MB, free: 4.25 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.26e-05/0.02203, allocations: 105.1 kB / 269.7 MB, free: 4.129 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0009361/0.02297, allocations: 0.7354 MB / 270.4 MB, free: 3.387 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.02341, allocations: 271.9 kB / 270.7 MB, free: 3.117 MB / 250.7 MB Notification: Performance of SimCode: time 1.603e-06/0.02341, allocations: 0 / 270.7 MB, free: 3.117 MB / 250.7 MB Notification: Performance of Templates: time 0.013/0.03642, allocations: 11.46 MB / 282.1 MB, free: 7.477 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 3.166327469982207]