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.001051/0.001051, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.001231/0.001231, allocations: 145.2 kB / 25.59 MB, free: 8.918 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.951/0.951, allocations: 173.4 MB / 202.3 MB, free: 8.27 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.633e-06/1.633e-06, allocations: 0 / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.794e-05/2.958e-05, allocations: 5.266 kB / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002827/0.002856, allocations: 2.021 MB / 271.2 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.004922, allocations: 1.08 MB / 272.3 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001875/0.005109, allocations: 4.844 kB / 272.3 MB, free: 6.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002188/0.005328, allocations: 55.5 kB / 272.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.005457, allocations: 53.19 kB / 272.4 MB, free: 6.57 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.00602, allocations: 175.6 kB / 272.6 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005465/0.006566, allocations: 472.3 kB / 273 MB, free: 5.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.006791, allocations: 113.3 kB / 273.2 MB, free: 5.824 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00082/0.007611, allocations: 0.9208 MB / 274.1 MB, free: 4.902 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003249/0.007936, allocations: 239.3 kB / 274.3 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.628e-05/0.008013, allocations: 40.72 kB / 274.3 MB, free: 4.629 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.762e-05/0.00807, allocations: 44 kB / 274.4 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.008222, allocations: 152.1 kB / 274.5 MB, free: 4.438 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.008373, allocations: 149 kB / 274.7 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006488/0.009022, allocations: 0.7163 MB / 275.4 MB, free: 3.574 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.009028, allocations: 4 kB / 275.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.00903, allocations: 0 / 275.4 MB, free: 3.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.009051, allocations: 1.781 kB / 275.4 MB, free: 3.57 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.001296/0.01035, allocations: 0.916 MB / 276.3 MB, free: 2.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.01039, allocations: 8.031 kB / 276.3 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.01053, allocations: 80.66 kB / 276.4 MB, free: 2.52 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003416/0.01088, allocations: 280.3 kB / 276.7 MB, free: 2.219 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.01091, allocations: 29.03 kB / 276.7 MB, free: 2.188 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.01097, allocations: 32.38 kB / 276.7 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.01149, allocations: 416.5 kB / 277.2 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.0115, allocations: 192 / 277.2 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.386e-05/0.01155, allocations: 16.38 kB / 277.2 MB, free: 1.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.01156, allocations: 11.94 kB / 277.2 MB, free: 1.707 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.01185, allocations: 249.1 kB / 277.4 MB, free: 1.457 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.01299, allocations: 0.8954 MB / 278.3 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000536/0.01353, allocations: 347.4 kB / 278.7 MB, free: 168 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.01368, allocations: 151.6 kB / 278.8 MB, free: 0 / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.072e-05/0.01373, allocations: 8.266 kB / 278.8 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003111/0.01404, allocations: 333 kB / 279.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=35): time 1.783e-06/0.01404, allocations: 0 / 279.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007458/0.01479, allocations: 0.6361 MB / 279.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.01484, allocations: 114.8 kB / 279.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002048/0.01505, allocations: 332 kB / 280.2 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.486e-05/0.01509, allocations: 45.69 kB / 280.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.0152, allocations: 223.7 kB / 280.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.762e-05/0.01528, allocations: 91.31 kB / 280.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.01546, allocations: 203.7 kB / 280.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.01563, allocations: 0.5117 MB / 281.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.0158, allocations: 152.3 kB / 281.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.016, allocations: 210.7 kB / 281.6 MB, free: 12.99 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.01636, allocations: 369 kB / 282 MB, free: 12.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.01636, allocations: 0 / 282 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006103/0.01697, allocations: 0.5656 MB / 282.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.01703, allocations: 63.41 kB / 282.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.01703, allocations: 0 / 282.6 MB, free: 11.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.01705, allocations: 4 kB / 282.6 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.01717, allocations: 63.89 kB / 282.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.01717, allocations: 8.031 kB / 282.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001426/0.01732, allocations: 23.95 kB / 282.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002114/0.01753, allocations: 283.7 kB / 283 MB, free: 11.54 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.0002498/0.01778, allocations: 271.8 kB / 283.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.98e-05/0.01787, allocations: 47.75 kB / 283.3 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.01792, allocations: 38.95 kB / 283.3 MB, free: 11.17 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.01792, allocations: 4 kB / 283.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.01793, allocations: 0 / 283.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.01793, allocations: 0 / 283.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003216/0.01825, allocations: 281 kB / 283.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.01826, allocations: 4 kB / 283.6 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-05/0.01833, allocations: 55.91 kB / 283.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.01833, allocations: 4 kB / 283.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.01838, allocations: 51.91 kB / 283.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.01838, allocations: 0 / 283.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.01838, allocations: 4 kB / 283.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005638/0.01895, allocations: 0.5582 MB / 284.3 MB, free: 10.14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.01912, allocations: 123.7 kB / 284.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.308e-05/0.01918, allocations: 19.94 kB / 284.4 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.899e-05/0.01928, allocations: 19.98 kB / 284.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001477/0.01943, allocations: 91.84 kB / 284.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/0.01964, allocations: 283.7 kB / 284.8 MB, free: 9.613 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001176/0.01975, allocations: 193.1 kB / 285 MB, free: 9.426 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01975, allocations: 0 / 285 MB, free: 9.426 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003896/0.02014, allocations: 99.89 kB / 285.1 MB, free: 9.328 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.0002294/0.02037, allocations: 150.2 kB / 285.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006168/0.02099, allocations: 0.5135 MB / 285.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.02099, allocations: 0 / 285.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.02133, allocations: 341.7 kB / 286.1 MB, free: 8.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008283/0.02216, allocations: 375 kB / 286.5 MB, free: 7.891 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009508/0.02311, allocations: 0.6754 MB / 287.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.437e-05/0.02317, allocations: 105.1 kB / 287.2 MB, free: 7.047 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.001066/0.02424, allocations: 0.7236 MB / 288 MB, free: 6.32 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008174/0.02506, allocations: 453.5 kB / 288.4 MB, free: 5.875 MB / 266.7 MB Notification: Performance of SimCode: time 2.515e-06/0.02506, allocations: 0 / 288.4 MB, free: 5.875 MB / 266.7 MB Notification: Performance of Templates: time 0.01351/0.03857, allocations: 12.28 MB / 300.7 MB, free: 9.582 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.841327947098762]