Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00141/0.00141, allocations: 175.1 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.892/1.892, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008656/0.0008663, allocations: 86.36 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003788/0.0003789, allocations: 12 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2914, allocations: 47.57 MB / 375.1 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002143/0.2936, allocations: 1.739 MB / 376.8 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.2957, allocations: 1.092 MB / 377.9 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.2958, allocations: 2.375 kB / 377.9 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.296, allocations: 30.98 kB / 377.9 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.698e-05/0.2961, allocations: 33.7 kB / 378 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.2965, allocations: 116.2 kB / 378.1 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00038/0.2969, allocations: 400.9 kB / 378.5 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.2972, allocations: 150.9 kB / 378.6 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008795/0.2981, allocations: 0.6752 MB / 379.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003419/0.2985, allocations: 250 kB / 379.5 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.135e-05/0.2986, allocations: 9.656 kB / 379.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.233e-05/0.2986, allocations: 14.31 kB / 379.6 MB, free: 42.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.2988, allocations: 122.2 kB / 379.7 MB, free: 42.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00024/0.2991, allocations: 207.8 kB / 379.9 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000558/0.2996, allocations: 0.7774 MB / 380.7 MB, free: 41.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.2997, allocations: 0 / 380.7 MB, free: 41.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2997, allocations: 3.938 kB / 380.7 MB, free: 41.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.2997, allocations: 1.438 kB / 380.7 MB, free: 41.59 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.0009434/0.3006, allocations: 0.7235 MB / 381.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3007, allocations: 9.5 kB / 381.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001279/0.3008, allocations: 48.81 kB / 381.5 MB, free: 40.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.3012, allocations: 346.8 kB / 381.8 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.381e-05/0.3013, allocations: 27.03 kB / 381.8 MB, free: 40.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.516e-05/0.3014, allocations: 32.03 kB / 381.9 MB, free: 40.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000901/0.3023, allocations: 495.1 kB / 382.3 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3023, allocations: 7.938 kB / 382.3 MB, free: 40.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.889e-05/0.3024, allocations: 16.41 kB / 382.4 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.3024, allocations: 7.562 kB / 382.4 MB, free: 40.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007966/0.3032, allocations: 383.1 kB / 382.7 MB, free: 40.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.305, allocations: 1.117 MB / 383.9 MB, free: 39.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001079/0.3061, allocations: 470.4 kB / 384.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003556/0.3065, allocations: 180.5 kB / 384.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.317e-05/0.3065, allocations: 3.5 kB / 384.5 MB, free: 39.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005467/0.3071, allocations: 356.7 kB / 384.8 MB, free: 38.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 3.888e-06/0.3071, allocations: 0 / 384.8 MB, free: 38.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001268/0.3084, allocations: 0.7422 MB / 385.6 MB, free: 38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.3085, allocations: 114.8 kB / 385.7 MB, free: 37.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.3087, allocations: 306.4 kB / 386 MB, free: 37.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.737e-05/0.3088, allocations: 41.7 kB / 386 MB, free: 37.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.423e-05/0.3089, allocations: 168.7 kB / 386.2 MB, free: 37.33 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.233e-05/0.3089, allocations: 79.09 kB / 386.3 MB, free: 37.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/0.309, allocations: 12 kB / 386.3 MB, free: 37.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.478e-05/0.3091, allocations: 334.8 kB / 386.6 MB, free: 36.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003218/0.3094, allocations: 192.8 kB / 386.8 MB, free: 36.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000339/0.3098, allocations: 236.5 kB / 387 MB, free: 36.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006989/0.3105, allocations: 0.536 MB / 387.6 MB, free: 35.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3105, allocations: 0 / 387.6 MB, free: 35.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009367/0.3114, allocations: 0.6526 MB / 388.2 MB, free: 35.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.096e-05/0.3115, allocations: 65.59 kB / 388.3 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.3115, allocations: 0 / 388.3 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3115, allocations: 4 kB / 388.3 MB, free: 35.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3117, allocations: 63.89 kB / 388.4 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.3117, allocations: 0 / 388.4 MB, free: 35.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003086/0.312, allocations: 55.78 kB / 388.4 MB, free: 35.03 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.3122, allocations: 288.5 kB / 388.7 MB, free: 34.75 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,FF.RS2.Nor2.x[1],FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[1],FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.x[1],FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.x[1],FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,$PRE.CLK.t_i,CLK.t_i,J.y,K.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002744/0.3125, allocations: 281.1 kB / 389 MB, free: 34.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.609e-05/0.3126, allocations: 39.56 kB / 389 MB, free: 34.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.016e-05/0.3126, allocations: 42.95 kB / 389 MB, free: 34.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3127, allocations: 0 / 389 MB, free: 34.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.3127, allocations: 4 kB / 389.1 MB, free: 34.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.3127, allocations: 0 / 389.1 MB, free: 34.37 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000466/0.3131, allocations: 481.1 kB / 389.5 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3132, allocations: 0 / 389.5 MB, free: 33.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.136e-05/0.3133, allocations: 55.91 kB / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3133, allocations: 0 / 389.6 MB, free: 33.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-05/0.3133, allocations: 47.97 kB / 389.6 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3133, allocations: 0 / 389.6 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3134, allocations: 4 kB / 389.6 MB, free: 33.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008805/0.3142, allocations: 0.6139 MB / 390.2 MB, free: 33.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002132/0.3145, allocations: 192.8 kB / 390.4 MB, free: 32.89 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.344e-05/0.3146, allocations: 24 kB / 390.5 MB, free: 32.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.3148, allocations: 47.75 kB / 390.5 MB, free: 32.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.315, allocations: 83.91 kB / 390.6 MB, free: 32.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/0.3152, allocations: 287.6 kB / 390.9 MB, free: 32.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001543/0.3153, allocations: 201.9 kB / 391.1 MB, free: 32.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3153, allocations: 0 / 391.1 MB, free: 32.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003778/0.3157, allocations: 95.84 kB / 391.2 MB, free: 32.17 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001654/0.3159, allocations: 141.8 kB / 391.3 MB, free: 32.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008154/0.3167, allocations: 0.5634 MB / 391.9 MB, free: 31.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3167, allocations: 3.938 kB / 391.9 MB, free: 31.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000407/0.3172, allocations: 354.6 kB / 392.2 MB, free: 31.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009953/0.3182, allocations: 287.2 kB / 392.5 MB, free: 30.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3193, allocations: 0.8446 MB / 393.3 MB, free: 29.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.3196, allocations: 0.8033 MB / 394.1 MB, free: 29.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.3206, allocations: 362.5 kB / 394.5 MB, free: 28.71 MB / 298.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3206, allocations: 4 kB / 394.5 MB, free: 28.71 MB / 298.7 MB Notification: Performance of Templates: time 0.008472/0.3291, allocations: 8.26 MB / 402.8 MB, free: 20.09 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches