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.00108/0.00108, allocations: 115.8 kB / 18.4 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001042, allocations: 203.4 kB / 19.35 MB, free: 3.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.429/1.429, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 61.64 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.0956, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003316/0.09895, allocations: 2.141 MB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002637/0.1016, allocations: 1.161 MB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1018, allocations: 4 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002693/0.102, allocations: 51.52 kB / 362.3 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.1022, allocations: 43.62 kB / 362.3 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000517/0.1027, allocations: 171.7 kB / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004503/0.1032, allocations: 463.6 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002697/0.1034, allocations: 156.9 kB / 363.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008074/0.1043, allocations: 0.8383 MB / 363.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003203/0.1046, allocations: 255 kB / 364.2 MB, free: 8.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.723e-05/0.1047, allocations: 40 kB / 364.2 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.767e-05/0.1048, allocations: 47.94 kB / 364.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001832/0.105, allocations: 147.5 kB / 364.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.1052, allocations: 214.8 kB / 364.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006885/0.1059, allocations: 0.9228 MB / 365.5 MB, free: 6.707 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1059, allocations: 3.938 kB / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.1059, allocations: 0 / 365.5 MB, free: 6.703 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1059, allocations: 0 / 365.5 MB, free: 6.703 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.001179/0.1071, allocations: 0.8723 MB / 366.4 MB, free: 5.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1071, allocations: 12.03 kB / 366.4 MB, free: 5.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.1073, allocations: 48.38 kB / 366.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005274/0.1078, allocations: 347.5 kB / 366.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.1078, allocations: 21.03 kB / 366.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.184e-05/0.1079, allocations: 36.38 kB / 366.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007939/0.1087, allocations: 494.1 kB / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1087, allocations: 0 / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.625e-05/0.1088, allocations: 16 kB / 367.3 MB, free: 4.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1088, allocations: 11.94 kB / 367.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007038/0.1095, allocations: 374.4 kB / 367.7 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001875/0.1114, allocations: 1.124 MB / 368.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009913/0.1124, allocations: 439.5 kB / 369.3 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.1128, allocations: 177.3 kB / 369.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.504e-05/0.1129, allocations: 4.281 kB / 369.5 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006206/0.1135, allocations: 344 kB / 369.8 MB, free: 2.254 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.244e-06/0.1135, allocations: 4 kB / 369.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00139/0.1149, allocations: 0.7304 MB / 370.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.114e-05/0.115, allocations: 110.8 kB / 370.6 MB, free: 1.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.1153, allocations: 302.5 kB / 370.9 MB, free: 1.062 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-05/0.1154, allocations: 41.69 kB / 371 MB, free: 1.016 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.1155, allocations: 180.7 kB / 371.1 MB, free: 0.832 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.976e-05/0.1156, allocations: 86.92 kB / 371.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002807/0.1159, allocations: 186 kB / 371.4 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1161, allocations: 342.8 kB / 371.7 MB, free: 220 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.1164, allocations: 184.8 kB / 371.9 MB, free: 32 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1602/0.2766, allocations: 230 kB / 372.2 MB, free: 19.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009309/0.2776, allocations: 0.5205 MB / 372.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2776, allocations: 0 / 372.7 MB, free: 19.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001245/0.2789, allocations: 0.6512 MB / 373.3 MB, free: 19.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.488e-05/0.2789, allocations: 60.58 kB / 373.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2789, allocations: 0.875 kB / 373.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.279, allocations: 3.156 kB / 373.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.2791, allocations: 59.95 kB / 373.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.385e-05/0.2792, allocations: 5.359 kB / 373.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.2794, allocations: 26.7 kB / 373.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000317/0.2797, allocations: 285.1 kB / 373.8 MB, free: 19.58 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.000394/0.2801, allocations: 292.6 kB / 374 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.2802, allocations: 29.03 kB / 374.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.093e-05/0.2803, allocations: 39.19 kB / 374.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.2803, allocations: 4.719 kB / 374.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.2803, allocations: 0.6562 kB / 374.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/0.2804, allocations: 7.859 kB / 374.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006015/0.281, allocations: 480.8 kB / 374.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.281, allocations: 2.359 kB / 374.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.2811, allocations: 47.12 kB / 374.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.2811, allocations: 2.625 kB / 374.6 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.264e-05/0.2812, allocations: 48.36 kB / 374.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.2812, allocations: 2.312 kB / 374.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.2812, allocations: 6.016 kB / 374.7 MB, free: 19.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009712/0.2822, allocations: 0.5991 MB / 375.3 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003223/0.2825, allocations: 198.9 kB / 375.5 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.818e-05/0.2826, allocations: 15.69 kB / 375.5 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.2828, allocations: 15.48 kB / 375.5 MB, free: 18.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.283, allocations: 90.25 kB / 375.6 MB, free: 18.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002461/0.2832, allocations: 283.1 kB / 375.9 MB, free: 18.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.2834, allocations: 201.4 kB / 376.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2834, allocations: 0.5 kB / 376.1 MB, free: 18.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004012/0.2838, allocations: 105.5 kB / 376.2 MB, free: 18.76 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.000156/0.284, allocations: 144.4 kB / 376.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009192/0.2849, allocations: 0.5599 MB / 376.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2849, allocations: 0 / 376.9 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.2854, allocations: 361.9 kB / 377.2 MB, free: 18.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.2865, allocations: 326 kB / 377.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001166/0.2877, allocations: 0.6981 MB / 378.3 MB, free: 17.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.288, allocations: 0.8098 MB / 379.1 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.001176/0.2891, allocations: 0.7493 MB / 379.8 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006305/0.2898, allocations: 266.6 kB / 380.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2898, allocations: 0 / 380.1 MB, free: 16.5 MB / 302.1 MB Notification: Performance of Templates: time 0.01525/0.305, allocations: 10.89 MB / 391 MB, free: 12.86 MB / 302.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 -s gbode -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