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/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_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/Complex trunk/package.mo): time 0.001218/0.001219, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 226.8 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009273/0.0009273, allocations: 103.1 kB / 296.7 MB, free: 6.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000897/0.000897, allocations: 47.92 kB / 356.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2332, allocations: 50.46 MB / 407.1 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002493/0.2357, allocations: 2.19 MB / 409.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.2375, allocations: 1.145 MB / 410.4 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.599e-05/0.2376, allocations: 3.938 kB / 410.4 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.2378, allocations: 35.77 kB / 410.4 MB, free: 24.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.142e-05/0.2379, allocations: 35.72 kB / 410.5 MB, free: 24.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003511/0.2383, allocations: 151.4 kB / 410.6 MB, free: 24.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.2386, allocations: 419.6 kB / 411 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002355/0.2388, allocations: 160.8 kB / 411.2 MB, free: 23.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005963/0.2394, allocations: 0.8148 MB / 412 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.2396, allocations: 239 kB / 412.2 MB, free: 22.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.397e-05/0.2397, allocations: 20 kB / 412.2 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.271e-05/0.2398, allocations: 16 kB / 412.3 MB, free: 22.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.24, allocations: 127.5 kB / 412.4 MB, free: 22.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001815/0.2402, allocations: 190.8 kB / 412.6 MB, free: 22.31 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005016/0.2407, allocations: 0.8878 MB / 413.5 MB, free: 21.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.2407, allocations: 8 kB / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.2407, allocations: 0 / 413.5 MB, free: 21.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.2407, allocations: 0 / 413.5 MB, free: 21.41 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.0009667/0.2417, allocations: 0.8816 MB / 414.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2417, allocations: 8.594 kB / 414.4 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2418, allocations: 52.45 kB / 414.4 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004366/0.2423, allocations: 343.4 kB / 414.7 MB, free: 20.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.068e-05/0.2423, allocations: 32.97 kB / 414.8 MB, free: 20 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.212e-05/0.2424, allocations: 32.38 kB / 414.8 MB, free: 19.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007274/0.2431, allocations: 490.1 kB / 415.3 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.2432, allocations: 0 / 415.3 MB, free: 19.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-05/0.2432, allocations: 20 kB / 415.3 MB, free: 19.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.2432, allocations: 8 kB / 415.3 MB, free: 19.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006357/0.2439, allocations: 374.4 kB / 415.7 MB, free: 19.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.2457, allocations: 1.12 MB / 416.8 MB, free: 17.92 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.2469, allocations: 431.5 kB / 417.2 MB, free: 17.49 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/0.2473, allocations: 185.2 kB / 417.4 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.841e-05/0.2474, allocations: 4.281 kB / 417.4 MB, free: 17.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000653/0.248, allocations: 344.1 kB / 417.7 MB, free: 16.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 2.315e-06/0.2481, allocations: 0 / 417.7 MB, free: 16.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001462/0.2495, allocations: 0.7343 MB / 418.5 MB, free: 16.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.73e-05/0.2496, allocations: 114.8 kB / 418.6 MB, free: 16.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002597/0.2499, allocations: 302.5 kB / 418.9 MB, free: 15.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.543e-05/0.2499, allocations: 41.7 kB / 418.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.613e-05/0.25, allocations: 184.7 kB / 419.1 MB, free: 15.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.613e-05/0.2501, allocations: 82.94 kB / 419.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002566/0.2504, allocations: 186 kB / 419.4 MB, free: 15.26 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.84e-05/0.2505, allocations: 338.8 kB / 419.7 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003878/0.2509, allocations: 184.8 kB / 419.9 MB, free: 14.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004638/0.2513, allocations: 236.5 kB / 420.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007491/0.2521, allocations: 0.5168 MB / 420.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2521, allocations: 0 / 420.6 MB, free: 13.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008926/0.253, allocations: 0.6449 MB / 421.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.404e-05/0.2531, allocations: 61.75 kB / 421.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.2531, allocations: 4 kB / 421.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.2531, allocations: 0 / 421.3 MB, free: 13.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2532, allocations: 67.83 kB / 421.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.2533, allocations: 4 kB / 421.4 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00028/0.2535, allocations: 47.72 kB / 421.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.2537, allocations: 287.7 kB / 421.7 MB, free: 12.8 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,$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.0002405/0.254, allocations: 290.6 kB / 422 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.869e-05/0.2541, allocations: 27.72 kB / 422 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.2541, allocations: 38.95 kB / 422.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2542, allocations: 4 kB / 422.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2542, allocations: 0 / 422.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.2542, allocations: 7.984 kB / 422.1 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004391/0.2546, allocations: 481.1 kB / 422.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2546, allocations: 0 / 422.6 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.668e-05/0.2547, allocations: 55.89 kB / 422.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.2547, allocations: 7.984 kB / 422.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.037e-05/0.2548, allocations: 39.98 kB / 422.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2548, allocations: 4 kB / 422.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.2548, allocations: 0 / 422.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.2561, allocations: 1.405 MB / 424.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.2564, allocations: 200.6 kB / 424.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.798e-05/0.2565, allocations: 19.88 kB / 424.3 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.2567, allocations: 39.81 kB / 424.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002149/0.257, allocations: 87.89 kB / 424.4 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000181/0.2571, allocations: 283.7 kB / 424.7 MB, free: 9.676 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001351/0.2573, allocations: 205.9 kB / 424.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2573, allocations: 0 / 424.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004591/0.2578, allocations: 99.84 kB / 425 MB, free: 9.375 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 (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.0001464/0.2579, allocations: 133.8 kB / 425.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007894/0.2587, allocations: 0.5571 MB / 425.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2587, allocations: 0 / 425.7 MB, free: 8.652 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004387/0.2592, allocations: 350.6 kB / 426 MB, free: 8.285 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.2602, allocations: 310.1 kB / 426.3 MB, free: 7.996 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.2615, allocations: 1.075 MB / 427.4 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.2618, allocations: 0.8189 MB / 428.2 MB, free: 6.039 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001159/0.263, allocations: 0.7471 MB / 429 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006258/0.2636, allocations: 262.8 kB / 429.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.2636, allocations: 3.938 kB / 429.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of Templates: time 0.01364/0.2772, allocations: 10.54 MB / 439.8 MB, free: 10.32 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches