Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_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_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.001261/0.001261, allocations: 103.9 kB / 18.39 MB, free: 4.668 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.001182/0.001182, allocations: 190.5 kB / 19.33 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 52.39 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07761/0.07884, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.002976/0.08184, allocations: 2.133 MB / 378 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.08417, allocations: 1.162 MB / 379.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.08439, allocations: 8 kB / 379.1 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002416/0.08466, allocations: 51.52 kB / 379.2 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.08483, allocations: 39.64 kB / 379.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.0854, allocations: 171.7 kB / 379.4 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005619/0.08597, allocations: 463.6 kB / 379.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000308/0.08629, allocations: 164.9 kB / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1683/0.2546, allocations: 0.8286 MB / 380.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004655/0.2551, allocations: 251.9 kB / 381.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001266/0.2552, allocations: 41.78 kB / 381.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.2554, allocations: 42.62 kB / 381.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.2555, allocations: 153.8 kB / 381.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002264/0.2558, allocations: 219.6 kB / 381.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009639/0.2567, allocations: 0.9252 MB / 382.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2568, allocations: 1.375 kB / 382.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2568, allocations: 2.438 kB / 382.4 MB, free: 9.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.2568, allocations: 0 / 382.4 MB, free: 9.961 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.001242/0.258, allocations: 0.8651 MB / 383.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2581, allocations: 9.734 kB / 383.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.2582, allocations: 49.69 kB / 383.4 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003903/0.2586, allocations: 350.5 kB / 383.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.2587, allocations: 31.16 kB / 383.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-05/0.2588, allocations: 32.31 kB / 383.8 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008789/0.2596, allocations: 487.4 kB / 384.2 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.2597, allocations: 3.938 kB / 384.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.714e-05/0.2597, allocations: 14.23 kB / 384.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2598, allocations: 8.125 kB / 384.3 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007144/0.2605, allocations: 384.9 kB / 384.6 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.2622, allocations: 1.113 MB / 385.8 MB, free: 8.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.2632, allocations: 436 kB / 386.2 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003179/0.2635, allocations: 180.9 kB / 386.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.2636, allocations: 2.969 kB / 386.4 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005996/0.2642, allocations: 348.9 kB / 386.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.853e-06/0.2642, allocations: 0 / 386.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001318/0.2655, allocations: 0.7285 MB / 387.4 MB, free: 8.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.2656, allocations: 111 kB / 387.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.2659, allocations: 313.6 kB / 387.9 MB, free: 8.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.396e-05/0.2659, allocations: 37.02 kB / 387.9 MB, free: 8.211 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.678e-05/0.2661, allocations: 184.1 kB / 388.1 MB, free: 8.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.184e-05/0.2661, allocations: 82.67 kB / 388.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002459/0.2664, allocations: 183.9 kB / 388.3 MB, free: 7.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.2665, allocations: 343.8 kB / 388.7 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003501/0.2668, allocations: 178.4 kB / 388.8 MB, free: 7.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.2672, allocations: 238.5 kB / 389.1 MB, free: 7.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007145/0.268, allocations: 0.5144 MB / 389.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.268, allocations: 1.094 kB / 389.6 MB, free: 7.203 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001003/0.269, allocations: 0.6522 MB / 390.2 MB, free: 6.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.402e-05/0.269, allocations: 60.8 kB / 390.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2691, allocations: 1.031 kB / 390.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.2691, allocations: 4.953 kB / 390.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.2692, allocations: 62.38 kB / 390.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.2693, allocations: 3.297 kB / 390.4 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.2695, allocations: 33.84 kB / 390.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.2697, allocations: 280.9 kB / 390.7 MB, free: 6.863 MB / 318.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.0002835/0.27, allocations: 298.1 kB / 391 MB, free: 6.629 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.66e-05/0.2701, allocations: 27.91 kB / 391 MB, free: 6.617 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.061e-05/0.2702, allocations: 34.69 kB / 391 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.2702, allocations: 3.812 kB / 391 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.2702, allocations: 4.75 kB / 391 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2702, allocations: 1.922 kB / 391 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005311/0.2707, allocations: 485.9 kB / 391.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.2708, allocations: 1.812 kB / 391.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.2709, allocations: 48.77 kB / 391.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.2709, allocations: 2.219 kB / 391.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.626e-05/0.271, allocations: 45.64 kB / 391.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.271, allocations: 1.031 kB / 391.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.271, allocations: 2.031 kB / 391.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.272, allocations: 0.6109 MB / 392.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002154/0.2722, allocations: 199.7 kB / 392.4 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.2723, allocations: 15.39 kB / 392.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.2725, allocations: 17 kB / 392.4 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.2727, allocations: 90.2 kB / 392.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000294/0.273, allocations: 280.1 kB / 392.8 MB, free: 5.844 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001648/0.2732, allocations: 197.4 kB / 393 MB, free: 5.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2732, allocations: 4 kB / 393 MB, free: 5.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003811/0.2736, allocations: 102.8 kB / 393.1 MB, free: 5.707 MB / 318.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.0001719/0.2738, allocations: 144.5 kB / 393.2 MB, free: 5.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008586/0.2746, allocations: 0.5551 MB / 393.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2747, allocations: 3.859 kB / 393.8 MB, free: 5.383 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004694/0.2751, allocations: 350.3 kB / 394.1 MB, free: 5.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.2764, allocations: 338.8 kB / 394.5 MB, free: 5.129 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.2776, allocations: 0.7464 MB / 395.2 MB, free: 4.723 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.2779, allocations: 0.8089 MB / 396 MB, free: 4.012 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.2794, allocations: 366.1 kB / 396.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2794, allocations: 0 / 396.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of Templates: time 0.009593/0.289, allocations: 8.331 MB / 404.7 MB, free: 256 kB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.FlipFlop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches