Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 191.9 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.473/1.473, allocations: 226.6 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007717/0.0007717, allocations: 100.2 kB / 296.8 MB, free: 6.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002823/0.0002824, allocations: 8 kB / 356.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2104, allocations: 51.3 MB / 408 MB, free: 27.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.00148/0.2119, allocations: 1.748 MB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001641/0.2136, allocations: 1.082 MB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.09e-05/0.2137, allocations: 7.938 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.2138, allocations: 31.77 kB / 410.9 MB, free: 24.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.862e-05/0.2139, allocations: 28.88 kB / 410.9 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003491/0.2143, allocations: 117.7 kB / 411.1 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000289/0.2146, allocations: 399.6 kB / 411.4 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.2148, allocations: 150.4 kB / 411.6 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005522/0.2154, allocations: 0.6713 MB / 412.3 MB, free: 23.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.2156, allocations: 251.4 kB / 412.5 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.642e-05/0.2157, allocations: 8.625 kB / 412.5 MB, free: 23.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.098e-05/0.2157, allocations: 12.59 kB / 412.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001248/0.2159, allocations: 127.7 kB / 412.7 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001682/0.2161, allocations: 212.8 kB / 412.9 MB, free: 22.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.2164, allocations: 0.7753 MB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2164, allocations: 3.938 kB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2164, allocations: 0 / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.2165, allocations: 0 / 413.6 MB, free: 22.04 MB / 298.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.0007346/0.2172, allocations: 0.7135 MB / 414.4 MB, free: 21.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.2172, allocations: 8.031 kB / 414.4 MB, free: 21.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.635e-05/0.2173, allocations: 52.38 kB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.2177, allocations: 355.4 kB / 414.8 MB, free: 20.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.2177, allocations: 25.03 kB / 414.8 MB, free: 20.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-05/0.2178, allocations: 32.38 kB / 414.8 MB, free: 20.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000728/0.2185, allocations: 498.1 kB / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2185, allocations: 0 / 415.3 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/0.2186, allocations: 12 kB / 415.3 MB, free: 20.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.2186, allocations: 8 kB / 415.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006511/0.2193, allocations: 390.3 kB / 415.7 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.2207, allocations: 1.112 MB / 416.8 MB, free: 18.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009141/0.2217, allocations: 472.5 kB / 417.3 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.222, allocations: 185.3 kB / 417.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.758e-05/0.2221, allocations: 288 / 417.5 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004817/0.2226, allocations: 351.1 kB / 417.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 1.844e-06/0.2226, allocations: 4 kB / 417.8 MB, free: 17.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001224/0.2238, allocations: 0.7362 MB / 418.5 MB, free: 16.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.754e-05/0.2239, allocations: 114.8 kB / 418.7 MB, free: 16.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.2241, allocations: 306.4 kB / 419 MB, free: 16.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.461e-05/0.2241, allocations: 37.7 kB / 419 MB, free: 16.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.2242, allocations: 176.7 kB / 419.2 MB, free: 16.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.183e-05/0.2243, allocations: 79.06 kB / 419.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.2244, allocations: 8 kB / 419.2 MB, free: 16.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.027e-05/0.2244, allocations: 350.7 kB / 419.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003171/0.2248, allocations: 184.8 kB / 419.8 MB, free: 15.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.2251, allocations: 240.5 kB / 420 MB, free: 15.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006845/0.2258, allocations: 0.5246 MB / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2258, allocations: 0 / 420.5 MB, free: 14.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009504/0.2268, allocations: 0.6586 MB / 421.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.644e-05/0.2268, allocations: 63.41 kB / 421.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.2268, allocations: 3.984 kB / 421.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2268, allocations: 4 kB / 421.3 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.227, allocations: 55.91 kB / 421.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.227, allocations: 7.938 kB / 421.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.2273, allocations: 51.81 kB / 421.4 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001887/0.2275, allocations: 291.7 kB / 421.7 MB, free: 13.7 MB / 298.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,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.x[1],FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002584/0.2277, allocations: 285.1 kB / 421.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.348e-05/0.2278, allocations: 31.62 kB / 422 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.759e-05/0.2279, allocations: 34.95 kB / 422 MB, free: 13.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2279, allocations: 11.94 kB / 422 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2279, allocations: 0 / 422 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2279, allocations: 3.984 kB / 422 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004299/0.2283, allocations: 489.1 kB / 422.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2283, allocations: 0 / 422.5 MB, free: 12.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.052e-05/0.2284, allocations: 47.91 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2284, allocations: 4 kB / 422.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.286e-05/0.2285, allocations: 43.97 kB / 422.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2285, allocations: 4 kB / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2285, allocations: 0 / 422.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008867/0.2294, allocations: 0.6131 MB / 423.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.2296, allocations: 188.8 kB / 423.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.823e-05/0.2297, allocations: 16 kB / 423.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.23, allocations: 47.81 kB / 423.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.2302, allocations: 91.84 kB / 423.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.2303, allocations: 279.7 kB / 423.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001379/0.2305, allocations: 205.9 kB / 424 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2305, allocations: 0 / 424 MB, free: 11.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005125/0.231, allocations: 99.75 kB / 424.1 MB, free: 11.11 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002322/0.2313, allocations: 141.8 kB / 424.2 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001209/0.2325, allocations: 0.5573 MB / 424.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2325, allocations: 4.062 kB / 424.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004308/0.2329, allocations: 362.4 kB / 425.2 MB, free: 9.996 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009836/0.2339, allocations: 282.8 kB / 425.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001025/0.235, allocations: 0.8312 MB / 426.3 MB, free: 8.867 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002063/0.2352, allocations: 0.8111 MB / 427.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001001/0.2362, allocations: 366.5 kB / 427.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.2362, allocations: 0 / 427.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of Templates: time 0.008063/0.2443, allocations: 8.253 MB / 435.7 MB, free: 15.07 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches