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.001025/0.001025, allocations: 84.98 kB / 23 MB, free: 1.5 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.001006/0.001006, allocations: 173.5 kB / 26.39 MB, free: 7.996 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.965/0.965, allocations: 158.6 MB / 188.3 MB, free: 2.82 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.633e-06/1.633e-06, allocations: 3.938 kB / 252.3 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.277e-05, allocations: 6.25 kB / 252.3 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003395/0.003418, allocations: 2.02 MB / 254.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002503/0.005921, allocations: 1.123 MB / 255.4 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.006042, allocations: 4 kB / 255.4 MB, free: 4.074 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.006237, allocations: 55.5 kB / 255.5 MB, free: 4.02 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.006364, allocations: 47.64 kB / 255.5 MB, free: 3.973 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004954/0.00686, allocations: 183.6 kB / 255.7 MB, free: 3.793 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004911/0.007351, allocations: 467.5 kB / 256.1 MB, free: 3.336 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.007616, allocations: 117.2 kB / 256.3 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009321/0.008548, allocations: 0.9164 MB / 257.2 MB, free: 2.305 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002292/0.008778, allocations: 239.3 kB / 257.4 MB, free: 2.07 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.008842, allocations: 40 kB / 257.4 MB, free: 2.031 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.008909, allocations: 44 kB / 257.5 MB, free: 1.988 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.009053, allocations: 155.4 kB / 257.6 MB, free: 1.836 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.009176, allocations: 139.5 kB / 257.8 MB, free: 1.699 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.009652, allocations: 0.724 MB / 258.5 MB, free: 0.9688 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.009655, allocations: 4 kB / 258.5 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.009655, allocations: 0 / 258.5 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.00966, allocations: 0 / 258.5 MB, free: 0.9648 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.0008707/0.01053, allocations: 0.9161 MB / 259.4 MB, free: 15.99 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.01057, allocations: 11.98 kB / 259.4 MB, free: 15.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/0.01069, allocations: 80.59 kB / 259.5 MB, free: 15.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.011, allocations: 283.4 kB / 259.8 MB, free: 15.6 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.01103, allocations: 25.03 kB / 259.8 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.48e-05/0.01109, allocations: 36.38 kB / 259.9 MB, free: 15.54 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004839/0.01157, allocations: 414.5 kB / 260.3 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.01158, allocations: 192 / 260.3 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/0.01162, allocations: 16.38 kB / 260.3 MB, free: 15.1 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.01163, allocations: 11.94 kB / 260.3 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.0119, allocations: 247.8 kB / 260.5 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000968/0.01287, allocations: 0.891 MB / 261.4 MB, free: 13.91 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004702/0.01334, allocations: 343.4 kB / 261.8 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.01348, allocations: 159.5 kB / 261.9 MB, free: 13.38 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.01353, allocations: 12.16 kB / 261.9 MB, free: 13.37 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002835/0.01381, allocations: 332.1 kB / 262.2 MB, free: 13.02 MB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 1.593e-06/0.01381, allocations: 4 kB / 262.2 MB, free: 13.02 MB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006837/0.01449, allocations: 0.636 MB / 262.9 MB, free: 12.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.01454, allocations: 110.8 kB / 263 MB, free: 12.2 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.01472, allocations: 335.9 kB / 263.3 MB, free: 11.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.381e-05/0.01476, allocations: 41.7 kB / 263.4 MB, free: 11.81 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.01487, allocations: 231.6 kB / 263.6 MB, free: 11.58 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.4e-05/0.01495, allocations: 95.34 kB / 263.7 MB, free: 11.49 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.01514, allocations: 191.7 kB / 263.9 MB, free: 11.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.01527, allocations: 0.5156 MB / 264.4 MB, free: 10.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.01541, allocations: 144.3 kB / 264.5 MB, free: 10.61 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.01558, allocations: 218.7 kB / 264.7 MB, free: 10.37 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.0159, allocations: 369 kB / 265.1 MB, free: 9.961 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01591, allocations: 0 / 265.1 MB, free: 9.961 MB / 250.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005504/0.01646, allocations: 0.5508 MB / 265.6 MB, free: 9.379 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.0165, allocations: 63.39 kB / 265.7 MB, free: 9.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.01651, allocations: 80 / 265.7 MB, free: 9.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.01652, allocations: 7.938 kB / 265.7 MB, free: 9.297 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.601e-05/0.01661, allocations: 59.91 kB / 265.8 MB, free: 9.238 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.01662, allocations: 12.02 kB / 265.8 MB, free: 9.227 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.01673, allocations: 31.88 kB / 265.8 MB, free: 9.195 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001652/0.01689, allocations: 283.7 kB / 266.1 MB, free: 8.918 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.000181/0.01708, allocations: 267.8 kB / 266.4 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.627e-05/0.01715, allocations: 47.75 kB / 266.4 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.513e-05/0.0172, allocations: 38.95 kB / 266.4 MB, free: 8.551 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.0172, allocations: 4 kB / 266.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.0172, allocations: 0 / 266.4 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.01721, allocations: 3.984 kB / 266.5 MB, free: 8.543 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005729/0.01778, allocations: 292.8 kB / 266.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.01779, allocations: 0 / 266.7 MB, free: 8.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.01785, allocations: 51.91 kB / 266.8 MB, free: 8.18 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.01785, allocations: 8 kB / 266.8 MB, free: 8.172 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.0179, allocations: 51.91 kB / 266.8 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.0179, allocations: 0 / 266.8 MB, free: 8.121 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.0179, allocations: 4 kB / 266.9 MB, free: 8.117 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000528/0.01843, allocations: 0.5506 MB / 267.4 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.01857, allocations: 119.7 kB / 267.5 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.136e-05/0.01863, allocations: 23.92 kB / 267.5 MB, free: 7.379 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.334e-05/0.01872, allocations: 16 kB / 267.6 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.01885, allocations: 87.91 kB / 267.6 MB, free: 7.277 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.01901, allocations: 283.7 kB / 267.9 MB, free: 7 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.4e-05/0.01911, allocations: 205 kB / 268.1 MB, free: 6.801 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01911, allocations: 0 / 268.1 MB, free: 6.801 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002556/0.01936, allocations: 103.8 kB / 268.2 MB, free: 6.699 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.0001278/0.01949, allocations: 137.8 kB / 268.4 MB, free: 6.551 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004629/0.01995, allocations: 0.5096 MB / 268.9 MB, free: 5.988 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01996, allocations: 0 / 268.9 MB, free: 5.988 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002592/0.02021, allocations: 337.7 kB / 269.2 MB, free: 5.617 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000683/0.0209, allocations: 378.7 kB / 269.6 MB, free: 5.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007187/0.02162, allocations: 0.6784 MB / 270.2 MB, free: 4.535 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.122e-05/0.02168, allocations: 109 kB / 270.4 MB, free: 4.41 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.000886/0.02256, allocations: 0.7198 MB / 271.1 MB, free: 3.684 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000692/0.02326, allocations: 457.5 kB / 271.5 MB, free: 3.234 MB / 250.7 MB Notification: Performance of SimCode: time 6.82e-07/0.02326, allocations: 0 / 271.5 MB, free: 3.234 MB / 250.7 MB Notification: Performance of Templates: time 0.01174/0.03499, allocations: 12.26 MB / 283.8 MB, free: 6.805 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.000825169030577]