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.001208/0.001207, allocations: 112.4 kB / 17.07 MB, free: 5.973 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.001381/0.001381, allocations: 194.8 kB / 18 MB, free: 5.059 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.607/1.607, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009421/0.0009422, allocations: 51.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3559, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003299/0.3593, allocations: 2.135 MB / 402.9 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.3617, allocations: 1.126 MB / 404 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.3618, allocations: 4 kB / 404 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002049/0.362, allocations: 47.58 kB / 404 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000142/0.3622, allocations: 51.56 kB / 404.1 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005071/0.3627, allocations: 159.8 kB / 404.2 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004996/0.3632, allocations: 475.6 kB / 404.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.3635, allocations: 160.9 kB / 404.9 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008095/0.3643, allocations: 0.8421 MB / 405.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002954/0.3647, allocations: 255 kB / 405.9 MB, free: 3.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.872e-05/0.3647, allocations: 40 kB / 406 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.109e-05/0.3648, allocations: 44 kB / 406 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.365, allocations: 151.5 kB / 406.2 MB, free: 3.391 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002472/0.3653, allocations: 210.8 kB / 406.4 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007807/0.3661, allocations: 0.9345 MB / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3661, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3661, allocations: 0 / 407.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3661, allocations: 0 / 407.3 MB, free: 2.246 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.001123/0.3672, allocations: 0.8657 MB / 408.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.3673, allocations: 12.03 kB / 408.2 MB, free: 1.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.3674, allocations: 52.31 kB / 408.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.3679, allocations: 351.4 kB / 408.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.485e-05/0.3679, allocations: 29.03 kB / 408.6 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.255e-05/0.368, allocations: 36.38 kB / 408.7 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008568/0.3689, allocations: 494.1 kB / 409.1 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3689, allocations: 0 / 409.1 MB, free: 336 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.149e-05/0.3689, allocations: 12 kB / 409.1 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.369, allocations: 8 kB / 409.2 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007316/0.3697, allocations: 378.3 kB / 409.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001718/0.3714, allocations: 1.124 MB / 410.7 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.3725, allocations: 431.5 kB / 411.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/0.3729, allocations: 181.3 kB / 411.2 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.3729, allocations: 4.281 kB / 411.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006034/0.3735, allocations: 343.1 kB / 411.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 1.913e-06/0.3735, allocations: 0 / 411.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001365/0.3749, allocations: 0.7238 MB / 412.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.375, allocations: 114.8 kB / 412.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.3753, allocations: 310.4 kB / 412.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.438e-05/0.3754, allocations: 37.7 kB / 412.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.3755, allocations: 184.6 kB / 412.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.3756, allocations: 79.05 kB / 413 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/0.3759, allocations: 182.1 kB / 413.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.376, allocations: 338.8 kB / 413.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003807/0.3764, allocations: 188.7 kB / 413.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004037/0.3768, allocations: 236.5 kB / 413.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.3776, allocations: 0.5213 MB / 414.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3777, allocations: 0 / 414.5 MB, free: 10.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001113/0.3788, allocations: 0.6488 MB / 415.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.019e-05/0.3789, allocations: 63.41 kB / 415.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3789, allocations: 4 kB / 415.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.3789, allocations: 0 / 415.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.379, allocations: 63.89 kB / 415.2 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.3791, allocations: 4 kB / 415.2 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.3793, allocations: 23.84 kB / 415.3 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002637/0.3795, allocations: 287.7 kB / 415.6 MB, free: 9.672 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.0003674/0.3799, allocations: 285.2 kB / 415.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.843e-05/0.38, allocations: 35.61 kB / 415.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.68e-05/0.3801, allocations: 34.97 kB / 415.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3801, allocations: 4 kB / 415.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3801, allocations: 0 / 415.9 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3801, allocations: 11.92 kB / 415.9 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.3807, allocations: 481.2 kB / 416.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3807, allocations: 7.875 kB / 416.4 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001038/0.3808, allocations: 47.97 kB / 416.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.3808, allocations: 4 kB / 416.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-05/0.3809, allocations: 43.97 kB / 416.5 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.3809, allocations: 4 kB / 416.5 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3809, allocations: 0 / 416.5 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.3819, allocations: 0.6169 MB / 417.1 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.3822, allocations: 188.7 kB / 417.3 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3823, allocations: 20 kB / 417.3 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.3825, allocations: 19.97 kB / 417.3 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/0.3828, allocations: 87.91 kB / 417.4 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002471/0.383, allocations: 279.7 kB / 417.7 MB, free: 7.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001951/0.3832, allocations: 205.9 kB / 417.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3832, allocations: 4 kB / 417.9 MB, free: 7.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003958/0.3836, allocations: 103.8 kB / 418 MB, free: 7.098 MB / 334.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.0002023/0.3838, allocations: 134.3 kB / 418.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3849, allocations: 0.5569 MB / 418.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3849, allocations: 0 / 418.7 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004888/0.3854, allocations: 354.5 kB / 419 MB, free: 6.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.3867, allocations: 348.4 kB / 419.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001326/0.388, allocations: 0.6978 MB / 420.1 MB, free: 4.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004097/0.3884, allocations: 0.8111 MB / 420.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001356/0.3898, allocations: 0.7471 MB / 421.6 MB, free: 3.391 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007038/0.3905, allocations: 262.8 kB / 421.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3905, allocations: 0 / 421.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of Templates: time 0.01576/0.4063, allocations: 10.91 MB / 432.8 MB, free: 8.098 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/FlipFlop/FlipFlop.csv","/var/lib/jenkins/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