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.001869/0.001869, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.00222/0.00222, allocations: 187.3 kB / 24.45 MB, free: 3.961 MB / 14.72 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.431/1.431, allocations: 225.7 MB / 253.3 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001608/0.001608, allocations: 47.92 kB / 371.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2294, allocations: 52.18 MB / 423.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00352/0.233, allocations: 1.98 MB / 425.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002768/0.2357, allocations: 1.068 MB / 426.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.2359, allocations: 3.938 kB / 426.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.2361, allocations: 43.58 kB / 426.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.2362, allocations: 55.58 kB / 427 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005552/0.2368, allocations: 175.8 kB / 427.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005704/0.2373, allocations: 475.5 kB / 427.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.2376, allocations: 109.3 kB / 427.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009797/0.2386, allocations: 0.8421 MB / 428.5 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003694/0.2389, allocations: 251 kB / 428.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001175/0.2391, allocations: 44 kB / 428.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.2392, allocations: 44 kB / 428.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002019/0.2394, allocations: 151.4 kB / 429 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.2396, allocations: 183 kB / 429.2 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009298/0.2405, allocations: 0.933 MB / 430.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.2405, allocations: 0 / 430.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2405, allocations: 0 / 430.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.2405, allocations: 0 / 430.1 MB, free: 8.102 MB / 334.1 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.001279/0.2418, allocations: 0.8006 MB / 430.9 MB, free: 7.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.2419, allocations: 12.02 kB / 431 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.242, allocations: 52.61 kB / 431 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005551/0.2426, allocations: 277.4 kB / 431.3 MB, free: 6.898 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/0.2426, allocations: 33.02 kB / 431.3 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.505e-05/0.2427, allocations: 36.38 kB / 431.3 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009541/0.2436, allocations: 0.5366 MB / 431.9 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.2436, allocations: 3.938 kB / 431.9 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.421e-05/0.2437, allocations: 16 kB / 431.9 MB, free: 6.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.2437, allocations: 11.94 kB / 431.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000807/0.2445, allocations: 429.8 kB / 432.3 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.2464, allocations: 0.9497 MB / 433.3 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.2476, allocations: 483 kB / 433.8 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004027/0.248, allocations: 220.7 kB / 434 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.192e-05/0.248, allocations: 8.266 kB / 434 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007571/0.2488, allocations: 399.3 kB / 434.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.825e-06/0.2488, allocations: 0 / 434.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001656/0.2504, allocations: 0.8274 MB / 435.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.093e-05/0.2505, allocations: 118.7 kB / 435.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004115/0.2509, allocations: 305.7 kB / 435.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.395e-05/0.251, allocations: 37.7 kB / 435.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.2512, allocations: 185 kB / 435.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.2513, allocations: 87.36 kB / 435.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002927/0.2516, allocations: 182 kB / 436.1 MB, free: 1.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.2518, allocations: 342.8 kB / 436.4 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004191/0.2522, allocations: 236.2 kB / 436.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.2527, allocations: 292 kB / 436.9 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009159/0.2536, allocations: 0.5288 MB / 437.5 MB, free: 416 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2536, allocations: 0 / 437.5 MB, free: 416 kB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001307/0.2549, allocations: 0.6951 MB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.29e-05/0.255, allocations: 59.41 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.255, allocations: 0 / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/0.255, allocations: 4 kB / 438.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.2552, allocations: 63.92 kB / 438.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.617e-06/0.2552, allocations: 4 kB / 438.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.2554, allocations: 31.88 kB / 438.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003166/0.2558, allocations: 275.7 kB / 438.6 MB, free: 15.24 MB / 350.1 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.0004461/0.2562, allocations: 297 kB / 438.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.903e-05/0.2563, allocations: 35.81 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.04e-05/0.2564, allocations: 34.95 kB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2564, allocations: 4 kB / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.2564, allocations: 0 / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2564, allocations: 0 / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.2569, allocations: 360.9 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.2569, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.2571, allocations: 51.91 kB / 439.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2571, allocations: 4 kB / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.706e-05/0.2571, allocations: 43.97 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.2571, allocations: 4 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.2571, allocations: 7.938 kB / 439.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.2583, allocations: 0.6564 MB / 440.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003564/0.2587, allocations: 123.7 kB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.2588, allocations: 20 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.2589, allocations: 15.98 kB / 440.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002343/0.2592, allocations: 87.91 kB / 440.3 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000301/0.2595, allocations: 283.7 kB / 440.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002338/0.2597, allocations: 201.2 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2597, allocations: 0 / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.2602, allocations: 99.89 kB / 440.9 MB, free: 12.84 MB / 350.1 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.0002097/0.2604, allocations: 141.7 kB / 441 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.2616, allocations: 0.6515 MB / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2616, allocations: 0 / 441.7 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005674/0.2622, allocations: 398 kB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.2634, allocations: 339.3 kB / 442.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.2649, allocations: 0.8177 MB / 443.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.2651, allocations: 200.2 kB / 443.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/0.2662, allocations: 362.5 kB / 443.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2662, allocations: 0 / 443.8 MB, free: 9.832 MB / 350.1 MB Notification: Performance of Templates: time 0.01188/0.2781, allocations: 8.337 MB / 452.1 MB, free: 1.145 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.943302837200463]