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.001273/0.001273, allocations: 108.6 kB / 21.19 MB, free: 0.7578 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.001328/0.001328, allocations: 193.1 kB / 24.47 MB, free: 4.152 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.413/1.413, allocations: 225.6 MB / 253.3 MB, free: 13.02 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.001603/0.001603, allocations: 51.92 kB / 371.7 MB, free: 9.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2422, allocations: 52.18 MB / 423.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003735/0.2459, allocations: 2.163 MB / 426 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.2485, allocations: 1.13 MB / 427.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.2487, allocations: 4 kB / 427.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.249, allocations: 47.52 kB / 427.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.2491, allocations: 47.62 kB / 427.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006136/0.2498, allocations: 179.7 kB / 427.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006436/0.2504, allocations: 479.5 kB / 427.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.2507, allocations: 117.3 kB / 428 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.2517, allocations: 0.8421 MB / 428.9 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005251/0.2523, allocations: 271 kB / 429.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.2524, allocations: 40 kB / 429.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.2525, allocations: 44 kB / 429.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002048/0.2527, allocations: 147.5 kB / 429.4 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003059/0.253, allocations: 222.8 kB / 429.6 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009586/0.254, allocations: 0.9277 MB / 430.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.254, allocations: 0 / 430.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.254, allocations: 0 / 430.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.254, allocations: 0 / 430.5 MB, free: 8.043 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.001596/0.2556, allocations: 0.8006 MB / 431.3 MB, free: 7.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.2556, allocations: 8.031 kB / 431.3 MB, free: 7.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.2558, allocations: 52.66 kB / 431.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006071/0.2564, allocations: 289.3 kB / 431.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.583e-05/0.2565, allocations: 29.03 kB / 431.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.152e-05/0.2566, allocations: 40.36 kB / 431.7 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009454/0.2575, allocations: 490.1 kB / 432.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.2575, allocations: 0 / 432.2 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.008e-05/0.2576, allocations: 12 kB / 432.2 MB, free: 6.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.2576, allocations: 8 kB / 432.2 MB, free: 6.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007887/0.2584, allocations: 378.3 kB / 432.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002199/0.2606, allocations: 1.086 MB / 433.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.2617, allocations: 420.4 kB / 434.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003597/0.262, allocations: 169.3 kB / 434.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.404e-05/0.2621, allocations: 8.281 kB / 434.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006631/0.2628, allocations: 343.9 kB / 434.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.405e-06/0.2628, allocations: 3.938 kB / 434.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001485/0.2642, allocations: 0.7191 MB / 435.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.272e-05/0.2643, allocations: 114.8 kB / 435.4 MB, free: 2.938 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.2647, allocations: 301.7 kB / 435.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.831e-05/0.2648, allocations: 45.69 kB / 435.8 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.2649, allocations: 177 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.265, allocations: 91.36 kB / 436 MB, free: 2.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000298/0.2653, allocations: 182 kB / 436.2 MB, free: 2.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2655, allocations: 342.8 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003963/0.2659, allocations: 180.8 kB / 436.7 MB, free: 1.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/0.2663, allocations: 236.5 kB / 436.9 MB, free: 1.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008736/0.2672, allocations: 0.5136 MB / 437.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.2672, allocations: 0 / 437.5 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001194/0.2684, allocations: 0.6566 MB / 438.1 MB, free: 144 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.65e-05/0.2685, allocations: 63.39 kB / 438.2 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2685, allocations: 0 / 438.2 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.2685, allocations: 4 kB / 438.2 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.2686, allocations: 59.91 kB / 438.2 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-05/0.2687, allocations: 7.984 kB / 438.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.2689, allocations: 27.83 kB / 438.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/0.2692, allocations: 287.7 kB / 438.6 MB, free: 15.69 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.0003767/0.2696, allocations: 285.1 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/0.2696, allocations: 31.81 kB / 438.9 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.794e-05/0.2697, allocations: 38.95 kB / 438.9 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2697, allocations: 4 kB / 438.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2697, allocations: 4 kB / 438.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.2697, allocations: 0 / 438.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000607/0.2703, allocations: 452.3 kB / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.2703, allocations: 0 / 439.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001142/0.2705, allocations: 51.91 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/0.2705, allocations: 4 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.478e-05/0.2705, allocations: 43.97 kB / 439.4 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.831e-06/0.2706, allocations: 4 kB / 439.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2706, allocations: 0 / 439.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.2717, allocations: 0.6179 MB / 440.1 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.272, allocations: 127.6 kB / 440.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.2721, allocations: 12 kB / 440.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.2723, allocations: 19.98 kB / 440.2 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002159/0.2725, allocations: 87.89 kB / 440.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002763/0.2728, allocations: 271.7 kB / 440.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.273, allocations: 205.1 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.273, allocations: 8 kB / 440.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004386/0.2734, allocations: 95.89 kB / 440.9 MB, free: 13.26 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.0001972/0.2736, allocations: 137.8 kB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.2747, allocations: 0.5413 MB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2747, allocations: 0 / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005276/0.2752, allocations: 338.6 kB / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.2765, allocations: 341.1 kB / 442.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.2779, allocations: 0.7597 MB / 443 MB, free: 11.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.2784, allocations: 0.8033 MB / 443.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001095/0.2795, allocations: 366.5 kB / 444.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2795, allocations: 0 / 444.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of Templates: time 0.01234/0.2918, allocations: 8.291 MB / 452.4 MB, free: 1.277 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: 8.004434428876266]