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.001342/0.001342, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 199.8 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.589/1.589, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 60.09 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3779, allocations: 50.54 MB / 409.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003995/0.3819, allocations: 2.158 MB / 411.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003019/0.385, allocations: 1.15 MB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.3852, allocations: 7.938 kB / 412.6 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002608/0.3855, allocations: 47.58 kB / 412.6 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.3856, allocations: 39.64 kB / 412.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.3863, allocations: 179.7 kB / 412.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006216/0.387, allocations: 459.6 kB / 413.3 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004591/0.3874, allocations: 152.9 kB / 413.4 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001076/0.3885, allocations: 0.8421 MB / 414.3 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.3889, allocations: 259 kB / 414.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.389, allocations: 40 kB / 414.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.3891, allocations: 44 kB / 414.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.3893, allocations: 147.5 kB / 414.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002562/0.3896, allocations: 218.8 kB / 414.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000882/0.3905, allocations: 0.9228 MB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3905, allocations: 4 kB / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3905, allocations: 0 / 415.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.3905, allocations: 3.938 kB / 415.9 MB, free: 10.96 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.001502/0.392, allocations: 0.8696 MB / 416.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/0.3921, allocations: 8.031 kB / 416.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.3922, allocations: 44.47 kB / 416.8 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005265/0.3928, allocations: 355.3 kB / 417.1 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.3928, allocations: 25.03 kB / 417.2 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.3929, allocations: 32.38 kB / 417.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009555/0.3939, allocations: 494.1 kB / 417.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.3939, allocations: 0 / 417.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.778e-05/0.394, allocations: 16 kB / 417.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.394, allocations: 11.98 kB / 417.7 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000771/0.3948, allocations: 382.3 kB / 418.1 MB, free: 8.652 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.3971, allocations: 1.112 MB / 419.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/0.3982, allocations: 431.5 kB / 419.6 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003464/0.3985, allocations: 181.3 kB / 419.8 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.54e-05/0.3986, allocations: 8.219 kB / 419.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006553/0.3993, allocations: 340.2 kB / 420.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 3.155e-06/0.3993, allocations: 0 / 420.1 MB, free: 6.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001624/0.4009, allocations: 0.7343 MB / 420.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.889e-05/0.401, allocations: 106.8 kB / 421 MB, free: 5.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003181/0.4013, allocations: 310.4 kB / 421.3 MB, free: 5.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/0.4014, allocations: 41.7 kB / 421.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.4016, allocations: 180.6 kB / 421.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.4017, allocations: 79.05 kB / 421.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002783/0.402, allocations: 182.1 kB / 421.7 MB, free: 4.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.4021, allocations: 342.8 kB / 422.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003723/0.4025, allocations: 184.8 kB / 422.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004094/0.4029, allocations: 236.5 kB / 422.5 MB, free: 4.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008282/0.4038, allocations: 0.5206 MB / 423 MB, free: 3.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.4038, allocations: 4 kB / 423 MB, free: 3.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001247/0.405, allocations: 0.6397 MB / 423.7 MB, free: 2.852 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.633e-05/0.4051, allocations: 67.34 kB / 423.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.4051, allocations: 0 / 423.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.4052, allocations: 8.031 kB / 423.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.4053, allocations: 55.89 kB / 423.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.4053, allocations: 4 kB / 423.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.4056, allocations: 31.84 kB / 423.8 MB, free: 2.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003793/0.4059, allocations: 287.7 kB / 424.1 MB, free: 2.395 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.000405/0.4064, allocations: 289.1 kB / 424.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.53e-05/0.4064, allocations: 35.61 kB / 424.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.056e-05/0.4065, allocations: 30.97 kB / 424.5 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.4065, allocations: 4 kB / 424.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.4066, allocations: 3.984 kB / 424.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.4066, allocations: 3.938 kB / 424.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005478/0.4071, allocations: 485.2 kB / 424.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.4071, allocations: 0 / 424.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.4072, allocations: 51.91 kB / 425 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.4073, allocations: 4 kB / 425 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.261e-05/0.4073, allocations: 47.97 kB / 425 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.4073, allocations: 0 / 425 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4074, allocations: 160 / 425 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001025/0.4084, allocations: 0.61 MB / 425.6 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000283/0.4087, allocations: 196.6 kB / 425.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001051/0.4088, allocations: 12 kB / 425.9 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.409, allocations: 23.98 kB / 425.9 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.4092, allocations: 87.91 kB / 426 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/0.4095, allocations: 283.7 kB / 426.2 MB, free: 136 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002063/0.4097, allocations: 209.8 kB / 426.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4097, allocations: 0 / 426.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004098/0.4101, allocations: 99.84 kB / 426.5 MB, free: 15.83 MB / 350.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.0002214/0.4103, allocations: 141.8 kB / 426.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.4113, allocations: 0.561 MB / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4113, allocations: 0 / 427.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004988/0.4119, allocations: 354.5 kB / 427.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.4133, allocations: 342.2 kB / 427.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001275/0.4146, allocations: 0.7126 MB / 428.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005759/0.4151, allocations: 0.7994 MB / 429.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001446/0.4166, allocations: 0.751 MB / 430.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006992/0.4173, allocations: 266.8 kB / 430.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4173, allocations: 0 / 430.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of Templates: time 0.01692/0.4342, allocations: 10.91 MB / 441.4 MB, free: 0.7695 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches