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.001032/0.001032, allocations: 78.19 kB / 21.42 MB, free: 3.07 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.001104/0.001104, allocations: 151.9 kB / 24.8 MB, free: 9.312 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 1.021/1.021, allocations: 173.3 MB / 201.4 MB, free: 9.215 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.663e-06/1.663e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.299e-05/1.465e-05, allocations: 2.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002313/0.002328, allocations: 2.024 MB / 270.4 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.004235, allocations: 1.099 MB / 271.5 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.004361, allocations: 7.938 kB / 271.5 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.004568, allocations: 39.64 kB / 271.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.642e-05/0.004664, allocations: 51.52 kB / 271.6 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005085/0.005173, allocations: 183.7 kB / 271.8 MB, free: 2.781 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004364/0.005609, allocations: 475.5 kB / 272.3 MB, free: 2.316 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.005823, allocations: 101.3 kB / 272.4 MB, free: 2.215 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007134/0.006536, allocations: 0.9281 MB / 273.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000249/0.006785, allocations: 239.2 kB / 273.5 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.703e-05/0.006862, allocations: 44 kB / 273.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.08e-05/0.006923, allocations: 40 kB / 273.6 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.007044, allocations: 147.5 kB / 273.8 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.007162, allocations: 155.4 kB / 273.9 MB, free: 0.6719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.007623, allocations: 0.7124 MB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.007625, allocations: 0 / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.007626, allocations: 0 / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.007632, allocations: 0 / 274.6 MB, free: 15.96 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.0009097/0.008541, allocations: 0.9199 MB / 275.5 MB, free: 14.99 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.863e-05/0.00859, allocations: 8.922 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.008727, allocations: 76.66 kB / 275.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003176/0.009044, allocations: 291.3 kB / 275.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.348e-05/0.009078, allocations: 29.03 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.827e-05/0.009126, allocations: 36.38 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000429/0.009555, allocations: 414.5 kB / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.009565, allocations: 192 / 276.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.009604, allocations: 12.38 kB / 276.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.009615, allocations: 15.88 kB / 276.4 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.009861, allocations: 243.8 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001125/0.01099, allocations: 0.8987 MB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004469/0.01143, allocations: 347.4 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.01157, allocations: 151.6 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.217e-05/0.01161, allocations: 12.22 kB / 278 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.01194, allocations: 328.1 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.453e-06/0.01195, allocations: 0 / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007416/0.01269, allocations: 0.636 MB / 279 MB, free: 11.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.01273, allocations: 114.8 kB / 279.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.01293, allocations: 336 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.12e-05/0.01297, allocations: 41.7 kB / 279.5 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.01308, allocations: 227.6 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.404e-05/0.01316, allocations: 91.31 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001794/0.01333, allocations: 199.7 kB / 280 MB, free: 10.28 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00026/0.01359, allocations: 0.5157 MB / 280.5 MB, free: 9.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.01373, allocations: 152.3 kB / 280.6 MB, free: 9.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.01389, allocations: 214.7 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.0142, allocations: 369 kB / 281.2 MB, free: 8.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.01421, allocations: 0 / 281.2 MB, free: 8.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008386/0.01504, allocations: 0.5611 MB / 281.8 MB, free: 8.352 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.819e-05/0.01509, allocations: 63.41 kB / 281.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.0151, allocations: 0 / 281.8 MB, free: 8.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.01512, allocations: 4 kB / 281.8 MB, free: 8.273 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.01525, allocations: 63.92 kB / 281.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.01525, allocations: 8.094 kB / 281.9 MB, free: 8.203 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.0154, allocations: 31.94 kB / 281.9 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001758/0.01557, allocations: 275.7 kB / 282.2 MB, free: 7.902 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.0003746/0.01595, allocations: 263.8 kB / 282.5 MB, free: 7.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.643e-05/0.01603, allocations: 59.75 kB / 282.5 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.072e-05/0.01608, allocations: 34.95 kB / 282.6 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01609, allocations: 0 / 282.6 MB, free: 7.527 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.01609, allocations: 4 kB / 282.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.01609, allocations: 3.984 kB / 282.6 MB, free: 7.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.01639, allocations: 277 kB / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.01639, allocations: 0 / 282.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-05/0.01646, allocations: 59.89 kB / 282.9 MB, free: 7.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.01646, allocations: 4 kB / 282.9 MB, free: 7.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.0165, allocations: 47.92 kB / 283 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.01651, allocations: 7.969 kB / 283 MB, free: 7.105 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.01651, allocations: 4 kB / 283 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.01703, allocations: 0.5581 MB / 283.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001629/0.0172, allocations: 123.7 kB / 283.6 MB, free: 6.375 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.01725, allocations: 15.94 kB / 283.7 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/0.01734, allocations: 23.98 kB / 283.7 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.01747, allocations: 87.91 kB / 283.8 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000173/0.01764, allocations: 283.7 kB / 284 MB, free: 5.973 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.302e-05/0.01774, allocations: 197.1 kB / 284.2 MB, free: 5.781 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01774, allocations: 0 / 284.2 MB, free: 5.781 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002645/0.018, allocations: 95.89 kB / 284.3 MB, free: 5.688 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.0001448/0.01815, allocations: 149.8 kB / 284.5 MB, free: 5.531 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004407/0.01859, allocations: 0.5096 MB / 285 MB, free: 4.969 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.01859, allocations: 4 kB / 285 MB, free: 4.965 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.01882, allocations: 345.8 kB / 285.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006905/0.01951, allocations: 370.3 kB / 285.7 MB, free: 4.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.02055, allocations: 0.6793 MB / 286.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.707e-05/0.02061, allocations: 101.1 kB / 286.5 MB, free: 3.406 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0009868/0.0216, allocations: 0.7237 MB / 287.2 MB, free: 2.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007373/0.02234, allocations: 453.5 kB / 287.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.02234, allocations: 0 / 287.6 MB, free: 2.234 MB / 266.7 MB Notification: Performance of Templates: time 0.1207/0.143, allocations: 12.14 MB / 299.8 MB, free: 26.82 MB / 266.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.865773566067219]