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.0008942/0.0008942, allocations: 85.05 kB / 21.5 MB, free: 2.98 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.0009338/0.0009338, allocations: 147.3 kB / 24.9 MB, free: 8.785 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.8908/0.8908, allocations: 173.4 MB / 201.5 MB, free: 8.238 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.733e-06/1.733e-06, allocations: 0 / 268.5 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.848e-05/2.022e-05, allocations: 5.406 kB / 268.5 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00263/0.002651, allocations: 2.03 MB / 270.5 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.004726, allocations: 1.101 MB / 271.6 MB, free: 6.656 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.00484, allocations: 11.88 kB / 271.6 MB, free: 6.645 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001809/0.005021, allocations: 48.22 kB / 271.7 MB, free: 6.598 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.00514, allocations: 44.84 kB / 271.7 MB, free: 6.555 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005591/0.005699, allocations: 187.6 kB / 271.9 MB, free: 6.371 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004884/0.006188, allocations: 472.1 kB / 272.3 MB, free: 5.91 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001941/0.006382, allocations: 110 kB / 272.5 MB, free: 5.801 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008223/0.007204, allocations: 0.8618 MB / 273.3 MB, free: 4.938 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003039/0.007508, allocations: 251.2 kB / 273.6 MB, free: 4.691 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.903e-05/0.007587, allocations: 40 kB / 273.6 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.916e-05/0.007656, allocations: 44 kB / 273.6 MB, free: 4.609 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.007807, allocations: 147.5 kB / 273.8 MB, free: 4.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.007978, allocations: 149.2 kB / 273.9 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005977/0.008576, allocations: 0.7164 MB / 274.7 MB, free: 3.602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.008579, allocations: 0 / 274.7 MB, free: 3.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.00858, allocations: 0 / 274.7 MB, free: 3.602 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.008587, allocations: 0 / 274.7 MB, free: 3.602 MB / 250.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.0009101/0.009497, allocations: 0.7338 MB / 275.4 MB, free: 2.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.009527, allocations: 8.031 kB / 275.4 MB, free: 2.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001403/0.009667, allocations: 61.64 kB / 275.5 MB, free: 2.766 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000317/0.009984, allocations: 260.6 kB / 275.7 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.01002, allocations: 29.66 kB / 275.7 MB, free: 2.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.01009, allocations: 36.38 kB / 275.8 MB, free: 2.422 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005315/0.01062, allocations: 363.1 kB / 276.1 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.01064, allocations: 2.656 kB / 276.1 MB, free: 2.051 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.01069, allocations: 20.38 kB / 276.2 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.01071, allocations: 15.88 kB / 276.2 MB, free: 2.016 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003004/0.01101, allocations: 167.9 kB / 276.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.01218, allocations: 0.7007 MB / 277 MB, free: 1.117 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005124/0.01269, allocations: 258 kB / 277.3 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000163/0.01285, allocations: 124.8 kB / 277.4 MB, free: 0.707 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.964e-05/0.0129, allocations: 4.281 kB / 277.4 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000302/0.0132, allocations: 275.2 kB / 277.7 MB, free: 420 kB / 250.7 MB Notification: Performance of pre-optimization done (n=35): time 1.803e-06/0.01321, allocations: 0 / 277.7 MB, free: 420 kB / 250.7 MB Notification: Performance of matching and sorting (n=35): time 0.0006102/0.01382, allocations: 415.5 kB / 278.1 MB, free: 15.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.28e-05/0.01387, allocations: 114.8 kB / 278.2 MB, free: 15.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.01405, allocations: 264.8 kB / 278.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.633e-05/0.01411, allocations: 41.7 kB / 278.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.01419, allocations: 160.9 kB / 278.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.477e-05/0.01429, allocations: 87.3 kB / 278.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.01448, allocations: 134 kB / 278.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.395e-05/0.01458, allocations: 342.8 kB / 279.2 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.01473, allocations: 112.4 kB / 279.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.01491, allocations: 168.6 kB / 279.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/0.01527, allocations: 316.5 kB / 279.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.01527, allocations: 4 kB / 279.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004794/0.01575, allocations: 352.1 kB / 280.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.129e-05/0.01579, allocations: 63.41 kB / 280.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.0158, allocations: 0 / 280.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.01581, allocations: 4 kB / 280.2 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.806e-05/0.01591, allocations: 43.83 kB / 280.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.01592, allocations: 0 / 280.2 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.01605, allocations: 23.98 kB / 280.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002137/0.01627, allocations: 251.7 kB / 280.5 MB, free: 13.35 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.0002172/0.01649, allocations: 228 kB / 280.7 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.277e-05/0.01658, allocations: 39.91 kB / 280.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.01662, allocations: 30.95 kB / 280.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.01663, allocations: 4 kB / 280.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.01663, allocations: 0 / 280.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.01663, allocations: 3.984 kB / 280.8 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.01691, allocations: 213.7 kB / 281 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01691, allocations: 0 / 281 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.693e-05/0.01698, allocations: 27.91 kB / 281 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.01698, allocations: 0 / 281 MB, free: 12.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/0.01703, allocations: 23.91 kB / 281.1 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.01703, allocations: 8 kB / 281.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01703, allocations: 0 / 281.1 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.01748, allocations: 348.6 kB / 281.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.01765, allocations: 95.72 kB / 281.5 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.631e-05/0.01772, allocations: 15.94 kB / 281.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.01784, allocations: 23.98 kB / 281.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.01799, allocations: 59.91 kB / 281.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002123/0.0182, allocations: 255.7 kB / 281.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.936e-05/0.01828, allocations: 86.75 kB / 281.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01828, allocations: 3.938 kB / 281.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003234/0.0186, allocations: 103.8 kB / 282 MB, free: 11.73 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.000149/0.01875, allocations: 127.5 kB / 282.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.01923, allocations: 427 kB / 282.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.01923, allocations: 0 / 282.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002719/0.01951, allocations: 285.7 kB / 282.9 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007392/0.02024, allocations: 350.7 kB / 283.2 MB, free: 10.49 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008196/0.02106, allocations: 0.6414 MB / 283.9 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.948e-05/0.02113, allocations: 101.1 kB / 284 MB, free: 9.684 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001156/0.02229, allocations: 0.7276 MB / 284.7 MB, free: 8.953 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009247/0.02322, allocations: 416.6 kB / 285.1 MB, free: 8.543 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.02322, allocations: 0 / 285.1 MB, free: 8.543 MB / 266.7 MB Notification: Performance of Templates: time 0.01211/0.03533, allocations: 11.91 MB / 297 MB, free: 12.61 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 240] 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","",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.750292187090963]