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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 110.8 kB / 17.74 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 188.5 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001054, allocations: 51.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2326, allocations: 49.44 MB / 401.4 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003248/0.2359, allocations: 2.13 MB / 403.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002351/0.2383, allocations: 1.123 MB / 404.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.2385, allocations: 3.938 kB / 404.7 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.2387, allocations: 51.52 kB / 404.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001674/0.2389, allocations: 35.66 kB / 404.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005535/0.2395, allocations: 171.7 kB / 404.9 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005722/0.2401, allocations: 467.6 kB / 405.4 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.2404, allocations: 164.9 kB / 405.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009058/0.2413, allocations: 0.8421 MB / 406.4 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003966/0.2417, allocations: 247.1 kB / 406.6 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.2419, allocations: 44 kB / 406.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.242, allocations: 51.94 kB / 406.7 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2422, allocations: 147.5 kB / 406.9 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.2425, allocations: 222.7 kB / 407.1 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008215/0.2433, allocations: 0.9228 MB / 408 MB, free: 2.238 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.2433, allocations: 0 / 408 MB, free: 2.238 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.2433, allocations: 0 / 408 MB, free: 2.238 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.205e-05/0.2434, allocations: 3.938 kB / 408 MB, free: 2.234 MB / 318.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.00157/0.2449, allocations: 0.8657 MB / 408.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.245, allocations: 12.03 kB / 408.9 MB, free: 1.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001663/0.2452, allocations: 52.38 kB / 408.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004871/0.2456, allocations: 347.4 kB / 409.3 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.2457, allocations: 29.03 kB / 409.3 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.2458, allocations: 36.38 kB / 409.3 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009125/0.2467, allocations: 490.1 kB / 409.8 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.2467, allocations: 0 / 409.8 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.739e-05/0.2468, allocations: 16 kB / 409.8 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.2468, allocations: 8 kB / 409.8 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007756/0.2476, allocations: 382.4 kB / 410.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.2495, allocations: 1.116 MB / 411.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.2506, allocations: 435.5 kB / 411.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003333/0.2509, allocations: 177.3 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.434e-05/0.251, allocations: 4.281 kB / 411.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006818/0.2517, allocations: 355 kB / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.013e-06/0.2517, allocations: 0 / 412.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001424/0.2531, allocations: 0.7238 MB / 413 MB, free: 13.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.525e-05/0.2532, allocations: 114.8 kB / 413.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.2536, allocations: 302.4 kB / 413.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.457e-05/0.2536, allocations: 37.7 kB / 413.4 MB, free: 12.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2538, allocations: 180.7 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.2539, allocations: 86.98 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.2542, allocations: 182.1 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2543, allocations: 338.8 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.2547, allocations: 188.8 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.2551, allocations: 236.5 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008209/0.2559, allocations: 0.5145 MB / 415.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.256, allocations: 3.938 kB / 415.1 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001094/0.2571, allocations: 0.6448 MB / 415.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.242e-05/0.2571, allocations: 63.39 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.2571, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.2572, allocations: 4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2573, allocations: 63.84 kB / 415.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.2574, allocations: 4 kB / 415.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.2576, allocations: 39.8 kB / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002473/0.2578, allocations: 283.7 kB / 416.2 MB, free: 9.652 MB / 334.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.0003533/0.2582, allocations: 285.1 kB / 416.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/0.2583, allocations: 31.62 kB / 416.6 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.952e-05/0.2584, allocations: 38.95 kB / 416.6 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2584, allocations: 4 kB / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.2584, allocations: 0 / 416.6 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.2584, allocations: 3.984 kB / 416.6 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005309/0.2589, allocations: 477.2 kB / 417.1 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.259, allocations: 4 kB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.2591, allocations: 47.91 kB / 417.1 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2591, allocations: 3.938 kB / 417.1 MB, free: 8.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.836e-05/0.2592, allocations: 47.97 kB / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.2592, allocations: 0 / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2592, allocations: 4 kB / 417.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009966/0.2602, allocations: 0.6168 MB / 417.8 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.2604, allocations: 192.7 kB / 418 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.2606, allocations: 16 kB / 418 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.2607, allocations: 19.98 kB / 418 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.261, allocations: 83.92 kB / 418.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00025/0.2612, allocations: 283.7 kB / 418.4 MB, free: 7.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001913/0.2614, allocations: 205.9 kB / 418.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2614, allocations: 0 / 418.6 MB, free: 7.195 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004494/0.2619, allocations: 99.84 kB / 418.7 MB, free: 7.098 MB / 334.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.0002104/0.2621, allocations: 146.2 kB / 418.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009986/0.2631, allocations: 0.5518 MB / 419.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2631, allocations: 0 / 419.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004896/0.2636, allocations: 354.5 kB / 419.7 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.2649, allocations: 330.2 kB / 420 MB, free: 5.703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.2662, allocations: 0.7493 MB / 420.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003835/0.2666, allocations: 0.8072 MB / 421.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001072/0.2677, allocations: 370.5 kB / 421.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2677, allocations: 0 / 421.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of Templates: time 0.01123/0.2789, allocations: 8.318 MB / 430.3 MB, free: 11.06 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (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) 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) Reference file matches