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.001074/0.001075, allocations: 109.2 kB / 17.75 MB, free: 5.223 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.00107/0.00107, allocations: 190.4 kB / 18.67 MB, free: 4.305 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.33/1.33, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2784, allocations: 49.42 MB / 401.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003088/0.2815, allocations: 2.147 MB / 403.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.2838, allocations: 1.115 MB / 404.7 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.284, allocations: 4 kB / 404.7 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001927/0.2842, allocations: 51.52 kB / 404.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.2843, allocations: 47.64 kB / 404.8 MB, free: 5.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.2848, allocations: 171.7 kB / 404.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.2854, allocations: 471.5 kB / 405.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.2856, allocations: 160.9 kB / 405.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007971/0.2864, allocations: 0.8421 MB / 406.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.2868, allocations: 255.1 kB / 406.6 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001365/0.2869, allocations: 40 kB / 406.7 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.2871, allocations: 44 kB / 406.7 MB, free: 3.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001895/0.2873, allocations: 143.5 kB / 406.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.2875, allocations: 226.7 kB / 407.1 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000714/0.2883, allocations: 0.9228 MB / 408 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2883, allocations: 0 / 408 MB, free: 2.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.2883, allocations: 0 / 408 MB, free: 2.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.2883, allocations: 4 kB / 408 MB, free: 2.285 MB / 318.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.00132/0.2896, allocations: 0.8657 MB / 408.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.2897, allocations: 12.03 kB / 408.9 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.2898, allocations: 48.38 kB / 408.9 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.2903, allocations: 347.4 kB / 409.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.2904, allocations: 29.03 kB / 409.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.685e-05/0.2905, allocations: 36.38 kB / 409.3 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009076/0.2914, allocations: 498 kB / 409.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.2914, allocations: 0 / 409.8 MB, free: 380 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/0.2915, allocations: 16 kB / 409.8 MB, free: 364 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2915, allocations: 8 kB / 409.9 MB, free: 356 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007532/0.2923, allocations: 374.4 kB / 410.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.2942, allocations: 1.116 MB / 411.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001075/0.2953, allocations: 439.5 kB / 411.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003551/0.2957, allocations: 173.3 kB / 411.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.216e-05/0.2957, allocations: 4.281 kB / 411.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005999/0.2963, allocations: 351 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.395e-06/0.2964, allocations: 0 / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001382/0.2978, allocations: 0.7276 MB / 413 MB, free: 13.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.2978, allocations: 114.8 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.2981, allocations: 302.4 kB / 413.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.198e-05/0.2982, allocations: 41.7 kB / 413.5 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.2983, allocations: 180.7 kB / 413.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.2984, allocations: 86.98 kB / 413.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.2987, allocations: 182.1 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001176/0.2988, allocations: 338.8 kB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003881/0.2992, allocations: 184.8 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.2996, allocations: 236.5 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008142/0.3004, allocations: 0.5175 MB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3005, allocations: 0 / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001096/0.3016, allocations: 0.6448 MB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.945e-05/0.3016, allocations: 63.44 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3016, allocations: 0 / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.3017, allocations: 4 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.3018, allocations: 63.89 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.3018, allocations: 4 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.302, allocations: 27.84 kB / 416 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/0.3023, allocations: 283.7 kB / 416.2 MB, free: 9.723 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.0003269/0.3026, allocations: 293 kB / 416.5 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.442e-05/0.3027, allocations: 35.61 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.801e-05/0.3028, allocations: 30.97 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.3028, allocations: 7.969 kB / 416.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3028, allocations: 0 / 416.6 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003474/0.3032, allocations: 192.7 kB / 416.8 MB, free: 9.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.3033, allocations: 23.94 kB / 416.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.3035, allocations: 19.98 kB / 416.8 MB, free: 9.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/0.3037, allocations: 87.91 kB / 416.9 MB, free: 9 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001179/0.3049, allocations: 0.7995 MB / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001019/0.3059, allocations: 0.7475 MB / 418.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003623/0.3063, allocations: 212.1 kB / 418.7 MB, free: 7.172 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.3065, allocations: 205.9 kB / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of Backend: time 4.71e-07/0.3065, allocations: 0 / 418.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001008/0.3075, allocations: 489 kB / 419.3 MB, free: 6.461 MB / 334.1 MB Notification: Performance of SimCode: time 0.001756/0.3093, allocations: 1.316 MB / 420.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of Templates: time 0.01673/0.326, allocations: 13.34 MB / 434 MB, free: 7.359 MB / 350.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