Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001124/0.001125, allocations: 111.6 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 212 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 59.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2248, allocations: 50.55 MB / 409.9 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002759/0.2276, allocations: 2.14 MB / 412.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2297, allocations: 1.15 MB / 413.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.543e-05/0.2298, allocations: 7.938 kB / 413.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.23, allocations: 43.58 kB / 413.3 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.2301, allocations: 47.64 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.2305, allocations: 171.7 kB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004372/0.231, allocations: 463.6 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.2312, allocations: 160.9 kB / 414.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008358/0.2321, allocations: 0.8383 MB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003628/0.2325, allocations: 259 kB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001317/0.2326, allocations: 44 kB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.2327, allocations: 44 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00019/0.2329, allocations: 143.5 kB / 415.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002481/0.2332, allocations: 218.8 kB / 415.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007635/0.2339, allocations: 0.9267 MB / 416.6 MB, free: 10.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2339, allocations: 3.938 kB / 416.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.234, allocations: 3.938 kB / 416.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.234, allocations: 0 / 416.6 MB, free: 10.91 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.001312/0.2353, allocations: 0.8696 MB / 417.4 MB, free: 9.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.2353, allocations: 8.031 kB / 417.4 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.2355, allocations: 48.47 kB / 417.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.236, allocations: 351.3 kB / 417.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.565e-05/0.2361, allocations: 29.02 kB / 417.9 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.014e-05/0.2362, allocations: 36.38 kB / 417.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009197/0.2371, allocations: 486.1 kB / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.2371, allocations: 0 / 418.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.656e-05/0.2372, allocations: 23.98 kB / 418.4 MB, free: 8.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.732e-05/0.2372, allocations: 8 kB / 418.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007293/0.238, allocations: 378.3 kB / 418.8 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0022/0.2402, allocations: 1.108 MB / 419.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.2413, allocations: 435.5 kB / 420.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.2417, allocations: 177.3 kB / 420.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.762e-05/0.2417, allocations: 4.281 kB / 420.5 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006542/0.2424, allocations: 344.2 kB / 420.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.365e-06/0.2424, allocations: 0 / 420.8 MB, free: 6.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001449/0.2439, allocations: 0.7343 MB / 421.6 MB, free: 5.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.608e-05/0.2439, allocations: 110.8 kB / 421.7 MB, free: 5.594 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.2442, allocations: 306.4 kB / 422 MB, free: 5.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.2443, allocations: 41.7 kB / 422 MB, free: 5.238 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.2444, allocations: 180.6 kB / 422.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.2445, allocations: 79.06 kB / 422.3 MB, free: 4.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002666/0.2448, allocations: 186.1 kB / 422.4 MB, free: 4.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.245, allocations: 338.8 kB / 422.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/0.2453, allocations: 184.8 kB / 423 MB, free: 4.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004271/0.2458, allocations: 236.5 kB / 423.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008769/0.2467, allocations: 0.5206 MB / 423.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2467, allocations: 0 / 423.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001217/0.2479, allocations: 0.6475 MB / 424.4 MB, free: 2.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.089e-05/0.248, allocations: 63.41 kB / 424.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.248, allocations: 0 / 424.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.248, allocations: 8.031 kB / 424.4 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.2482, allocations: 59.89 kB / 424.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.2482, allocations: 0 / 424.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.2484, allocations: 35.83 kB / 424.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/0.2487, allocations: 275.7 kB / 424.8 MB, free: 2.359 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.0003671/0.2491, allocations: 304.9 kB / 425.1 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.182e-05/0.2491, allocations: 31.62 kB / 425.1 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.2492, allocations: 34.95 kB / 425.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.2492, allocations: 0 / 425.1 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2492, allocations: 3.938 kB / 425.2 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/0.2496, allocations: 192.7 kB / 425.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001146/0.2497, allocations: 27.92 kB / 425.4 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.2499, allocations: 12 kB / 425.4 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002141/0.2501, allocations: 91.84 kB / 425.5 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001188/0.2513, allocations: 0.8044 MB / 426.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00107/0.2524, allocations: 0.7437 MB / 427 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003906/0.2528, allocations: 215.7 kB / 427.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.253, allocations: 194 kB / 427.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of Backend: time 6.51e-07/0.253, allocations: 0 / 427.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.254, allocations: 488.1 kB / 427.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of SimCode: time 0.001867/0.2559, allocations: 1.325 MB / 429.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Templates: time 0.01719/0.2731, allocations: 13.33 MB / 442.6 MB, free: 15.98 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches