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.0009083/0.0009083, allocations: 94.56 kB / 17.31 MB, free: 5.656 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.0009781/0.0009781, allocations: 179.9 kB / 18.21 MB, free: 5.25 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.283/1.283, allocations: 223.3 MB / 242.3 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002299, allocations: 7.938 kB / 302.1 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07341/0.07365, allocations: 50.42 MB / 352.5 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.001868/0.07554, allocations: 1.819 MB / 354.3 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.07752, allocations: 1.091 MB / 355.4 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.546e-05/0.07763, allocations: 4 kB / 355.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.07779, allocations: 43.64 kB / 355.5 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001122/0.07791, allocations: 31.78 kB / 355.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.07832, allocations: 155.8 kB / 355.6 MB, free: 324 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003947/0.07872, allocations: 415.6 kB / 356 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.07897, allocations: 152.9 kB / 356.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007643/0.07975, allocations: 0.7913 MB / 357 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.08003, allocations: 215 kB / 357.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.071e-05/0.0801, allocations: 12 kB / 357.2 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.059e-05/0.08017, allocations: 8 kB / 357.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.08032, allocations: 115.5 kB / 357.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.08053, allocations: 192.5 kB / 357.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005455/0.08108, allocations: 0.7831 MB / 358.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.08109, allocations: 0 / 358.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.0811, allocations: 0 / 358.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.08112, allocations: 4 kB / 358.3 MB, free: 13.64 MB / 302.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.0009613/0.08209, allocations: 0.7205 MB / 359 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.08212, allocations: 8.031 kB / 359 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.08225, allocations: 44.47 kB / 359.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.08265, allocations: 355.3 kB / 359.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.603e-05/0.0827, allocations: 29.03 kB / 359.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.0828, allocations: 36.38 kB / 359.5 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008632/0.08367, allocations: 0.4902 MB / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.0837, allocations: 0 / 360 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.08377, allocations: 16 kB / 360 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.08378, allocations: 8 kB / 360 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007752/0.08456, allocations: 386.4 kB / 360.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.08625, allocations: 1.112 MB / 361.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001094/0.08735, allocations: 471.5 kB / 361.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003646/0.08773, allocations: 186.2 kB / 362.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-05/0.08779, allocations: 8.281 kB / 362.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005685/0.08837, allocations: 343.2 kB / 362.5 MB, free: 9.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 1.943e-06/0.08838, allocations: 4 kB / 362.5 MB, free: 9.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.001445/0.08984, allocations: 0.7422 MB / 363.2 MB, free: 8.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.639e-05/0.0899, allocations: 114.8 kB / 363.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.09019, allocations: 302.4 kB / 363.6 MB, free: 8.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.056e-05/0.09027, allocations: 41.7 kB / 363.7 MB, free: 8.027 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.09039, allocations: 180.7 kB / 363.8 MB, free: 7.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.0905, allocations: 83 kB / 363.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001199/0.09063, allocations: 69.67 kB / 364 MB, free: 7.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.09074, allocations: 342.8 kB / 364.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003922/0.09114, allocations: 192.7 kB / 364.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004169/0.09157, allocations: 240.5 kB / 364.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008531/0.09243, allocations: 0.5328 MB / 365.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.09244, allocations: 0 / 365.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001149/0.0936, allocations: 0.6565 MB / 365.9 MB, free: 5.668 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.09365, allocations: 59.41 kB / 366 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.09367, allocations: 4 kB / 366 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.09369, allocations: 8.031 kB / 366 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.09383, allocations: 59.89 kB / 366.1 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.778e-06/0.09385, allocations: 4 kB / 366.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003012/0.09416, allocations: 55.66 kB / 366.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002425/0.09441, allocations: 287.7 kB / 366.4 MB, free: 5.188 MB / 302.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.0003106/0.09473, allocations: 285.1 kB / 366.7 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.09481, allocations: 27.72 kB / 366.7 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.051e-05/0.09489, allocations: 38.95 kB / 366.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.0949, allocations: 7.984 kB / 366.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.09491, allocations: 0 / 366.8 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.09492, allocations: 3.984 kB / 366.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005299/0.09545, allocations: 481.1 kB / 367.2 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.09547, allocations: 0 / 367.2 MB, free: 4.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.09559, allocations: 63.89 kB / 367.3 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.0956, allocations: 4 kB / 367.3 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.892e-05/0.09567, allocations: 39.98 kB / 367.3 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.09568, allocations: 7.938 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.09569, allocations: 3.984 kB / 367.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.09674, allocations: 0.6216 MB / 368 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.09698, allocations: 192.7 kB / 368.2 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.844e-05/0.09709, allocations: 16 kB / 368.2 MB, free: 3.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.09734, allocations: 39.91 kB / 368.2 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.09754, allocations: 83.91 kB / 368.3 MB, free: 3.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002301/0.09778, allocations: 283.7 kB / 368.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001756/0.09797, allocations: 209.9 kB / 368.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09797, allocations: 4 kB / 368.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003907/0.09837, allocations: 95.75 kB / 368.9 MB, free: 2.594 MB / 302.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.000163/0.09854, allocations: 141.7 kB / 369 MB, free: 2.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009615/0.09951, allocations: 0.5712 MB / 369.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.09952, allocations: 0 / 369.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004966/0.1, allocations: 358.6 kB / 369.9 MB, free: 1.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001321/0.1014, allocations: 305.4 kB / 370.2 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.1026, allocations: 0.8687 MB / 371.1 MB, free: 292 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1299/0.2325, allocations: 0.8024 MB / 371.9 MB, free: 23.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/0.2337, allocations: 360.7 kB / 372.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2337, allocations: 0 / 372.3 MB, free: 23.38 MB / 302.1 MB Notification: Performance of Templates: time 0.01109/0.2448, allocations: 8.245 MB / 380.5 MB, free: 21.57 MB / 302.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