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.001349/0.001349, allocations: 109.4 kB / 18.39 MB, free: 4.676 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.001456/0.001456, allocations: 189.2 kB / 19.33 MB, free: 3.75 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.735/1.735, 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.00143/0.00143, allocations: 55.91 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.004147/0.1145, allocations: 2.141 MB / 378 MB, free: 2.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002952/0.1175, allocations: 1.158 MB / 379.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002798/0.1178, allocations: 4 kB / 379.1 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002573/0.1181, allocations: 47.58 kB / 379.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.1183, allocations: 51.56 kB / 379.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006857/0.119, allocations: 163.8 kB / 379.4 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006952/0.1197, allocations: 467.5 kB / 379.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003575/0.1201, allocations: 156.9 kB / 380 MB, free: 384 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2148/0.3349, allocations: 0.8394 MB / 380.8 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004699/0.3354, allocations: 249 kB / 381.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.3356, allocations: 42.41 kB / 381.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3357, allocations: 42.62 kB / 381.1 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.3359, allocations: 148.2 kB / 381.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002716/0.3362, allocations: 219.7 kB / 381.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001226/0.3374, allocations: 0.9231 MB / 382.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3375, allocations: 4.281 kB / 382.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3375, allocations: 0 / 382.4 MB, free: 9.938 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3375, allocations: 0 / 382.4 MB, free: 9.938 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.001565/0.3391, allocations: 0.8674 MB / 383.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.3391, allocations: 9.156 kB / 383.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.3393, allocations: 52.25 kB / 383.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.3398, allocations: 354.1 kB / 383.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.3398, allocations: 24.84 kB / 383.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001/0.3399, allocations: 33.12 kB / 383.8 MB, free: 9.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001039/0.341, allocations: 489 kB / 384.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.341, allocations: 3.938 kB / 384.2 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.642e-05/0.3411, allocations: 16.44 kB / 384.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.3411, allocations: 7.375 kB / 384.3 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008265/0.3419, allocations: 383.2 kB / 384.6 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.3439, allocations: 1.118 MB / 385.8 MB, free: 8.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001149/0.345, allocations: 433.2 kB / 386.2 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000377/0.3454, allocations: 176.9 kB / 386.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.689e-05/0.3455, allocations: 4.734 kB / 386.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007441/0.3463, allocations: 349.9 kB / 386.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 2.885e-06/0.3463, allocations: 0 / 386.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.001635/0.3479, allocations: 0.7278 MB / 387.4 MB, free: 8.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/0.348, allocations: 114 kB / 387.5 MB, free: 8.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003724/0.3484, allocations: 304.9 kB / 387.8 MB, free: 8.242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.722e-05/0.3485, allocations: 41.64 kB / 387.9 MB, free: 8.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3486, allocations: 182 kB / 388.1 MB, free: 8.062 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.3487, allocations: 80.69 kB / 388.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003273/0.349, allocations: 184.8 kB / 388.3 MB, free: 7.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.25e-05/0.3491, allocations: 343.3 kB / 388.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.3495, allocations: 185.7 kB / 388.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004217/0.35, allocations: 233.1 kB / 389.1 MB, free: 7.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008073/0.3508, allocations: 0.5229 MB / 389.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3508, allocations: 0 / 389.6 MB, free: 7.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.00123/0.352, allocations: 0.6521 MB / 390.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.3521, allocations: 60.03 kB / 390.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.3521, allocations: 1.438 kB / 390.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.603e-05/0.3522, allocations: 3.031 kB / 390.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.3523, allocations: 63.5 kB / 390.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3524, allocations: 2.781 kB / 390.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002489/0.3526, allocations: 36.48 kB / 390.4 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003501/0.353, allocations: 280.4 kB / 390.7 MB, free: 6.852 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.0004346/0.3534, allocations: 292.1 kB / 391 MB, free: 6.621 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3535, allocations: 33.02 kB / 391 MB, free: 6.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.672e-05/0.3536, allocations: 37.73 kB / 391 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.3536, allocations: 3.531 kB / 391 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.118e-05/0.3537, allocations: 0 / 391 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3537, allocations: 3.438 kB / 391 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006294/0.3543, allocations: 476.2 kB / 391.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3543, allocations: 0 / 391.5 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001412/0.3545, allocations: 53.72 kB / 391.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3545, allocations: 0.9062 kB / 391.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.246e-05/0.3546, allocations: 46.3 kB / 391.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3546, allocations: 5.953 kB / 391.6 MB, free: 6.281 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.3546, allocations: 9 kB / 391.6 MB, free: 6.273 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.3557, allocations: 0.6046 MB / 392.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.356, allocations: 200 kB / 392.4 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.3561, allocations: 14.89 kB / 392.4 MB, free: 5.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3562, allocations: 17.38 kB / 392.4 MB, free: 5.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002353/0.3565, allocations: 93.02 kB / 392.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003222/0.3568, allocations: 278.6 kB / 392.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002097/0.357, allocations: 201.2 kB / 393 MB, free: 5.723 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.357, allocations: 0 / 393 MB, free: 5.723 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005311/0.3576, allocations: 103.1 kB / 393.1 MB, free: 5.699 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.000187/0.3578, allocations: 144.4 kB / 393.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3588, allocations: 0.55 MB / 393.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.3589, allocations: 3.859 kB / 393.8 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/0.3594, allocations: 355.9 kB / 394.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.3607, allocations: 333.8 kB / 394.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.3621, allocations: 0.7506 MB / 395.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.3624, allocations: 0.8054 MB / 396 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/0.3641, allocations: 366 kB / 396.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3641, allocations: 0 / 396.4 MB, free: 3.77 MB / 318.1 MB Notification: Performance of Templates: time 0.01268/0.3768, allocations: 8.38 MB / 404.8 MB, free: 212 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