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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.FlipFlop,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001619/0.001619, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001808/0.001808, allocations: 196 kB / 18 MB, free: 5.074 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2602, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.FlipFlop): time 0.003767/0.264, allocations: 2.126 MB / 402.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002566/0.2666, allocations: 1.119 MB / 403.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002951/0.267, allocations: 7.938 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002606/0.2673, allocations: 47.58 kB / 403.5 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.2675, allocations: 47.56 kB / 403.6 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005854/0.268, allocations: 167.7 kB / 403.7 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004993/0.2686, allocations: 471.6 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.2688, allocations: 168.4 kB / 404.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008161/0.2697, allocations: 0.8459 MB / 405.2 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000304/0.27, allocations: 247.1 kB / 405.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.934e-05/0.2701, allocations: 44 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.2702, allocations: 40 kB / 405.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.2704, allocations: 159.5 kB / 405.7 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.2706, allocations: 214.8 kB / 405.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007815/0.2714, allocations: 0.9216 MB / 406.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2715, allocations: 4 kB / 406.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.2715, allocations: 0 / 406.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.2715, allocations: 3.938 kB / 406.8 MB, free: 2.188 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.001215/0.2727, allocations: 0.8759 MB / 407.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.2728, allocations: 8.031 kB / 407.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000113/0.2729, allocations: 70.72 kB / 407.8 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.273, allocations: 52.66 kB / 407.8 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005941/0.2736, allocations: 359.5 kB / 408.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.2737, allocations: 29.03 kB / 408.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.208e-05/0.2738, allocations: 32.38 kB / 408.2 MB, free: 0.668 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009238/0.2747, allocations: 489.9 kB / 408.7 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2747, allocations: 0 / 408.7 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.464e-05/0.2748, allocations: 20 kB / 408.7 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2748, allocations: 8 kB / 408.8 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007345/0.2755, allocations: 378.4 kB / 409.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001838/0.2774, allocations: 1.113 MB / 410.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001048/0.2785, allocations: 439.5 kB / 410.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.2788, allocations: 181.3 kB / 410.8 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.442e-05/0.2789, allocations: 8.266 kB / 410.8 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006167/0.2795, allocations: 351 kB / 411.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.024e-06/0.2795, allocations: 0 / 411.2 MB, free: 13.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.001374/0.2809, allocations: 0.7278 MB / 411.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.589e-05/0.281, allocations: 114.8 kB / 412 MB, free: 12.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002897/0.2813, allocations: 302.5 kB / 412.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.424e-05/0.2814, allocations: 41.7 kB / 412.4 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.2815, allocations: 177 kB / 412.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.2816, allocations: 91.36 kB / 412.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002514/0.2819, allocations: 186 kB / 412.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.282, allocations: 338.8 kB / 413.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.2823, allocations: 184.8 kB / 413.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004079/0.2828, allocations: 236.5 kB / 413.6 MB, free: 11.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007972/0.2836, allocations: 0.5215 MB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.2836, allocations: 3.938 kB / 414.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001065/0.2846, allocations: 0.6488 MB / 414.7 MB, free: 9.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.28e-05/0.2847, allocations: 59.41 kB / 414.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.2847, allocations: 0 / 414.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2847, allocations: 7.938 kB / 414.8 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.2849, allocations: 59.91 kB / 414.9 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.789e-06/0.2849, allocations: 3.984 kB / 414.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001917/0.2851, allocations: 39.86 kB / 414.9 MB, free: 9.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002271/0.2853, allocations: 279.7 kB / 415.2 MB, free: 9.496 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.0003048/0.2857, allocations: 285.1 kB / 415.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/0.2858, allocations: 31.81 kB / 415.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.412e-05/0.2858, allocations: 42.95 kB / 415.5 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2858, allocations: 4 kB / 415.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2858, allocations: 0 / 415.5 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.2859, allocations: 7.922 kB / 415.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005021/0.2864, allocations: 473.3 kB / 416 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.2864, allocations: 0 / 416 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.2865, allocations: 55.91 kB / 416 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2865, allocations: 3.938 kB / 416.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.227e-05/0.2866, allocations: 47.97 kB / 416.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2866, allocations: 0 / 416.1 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2866, allocations: 4 kB / 416.1 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009759/0.2876, allocations: 0.6131 MB / 416.7 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.2879, allocations: 196.9 kB / 416.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.288, allocations: 12 kB / 416.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.2882, allocations: 19.98 kB / 416.9 MB, free: 7.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.2884, allocations: 87.91 kB / 417 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/0.2886, allocations: 287.6 kB / 417.3 MB, free: 7.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001762/0.2888, allocations: 198 kB / 417.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2888, allocations: 4 kB / 417.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000383/0.2892, allocations: 99.83 kB / 417.6 MB, free: 6.934 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.001355/0.2905, allocations: 1.192 MB / 418.8 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009395/0.2915, allocations: 0.5535 MB / 419.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2915, allocations: 64 / 419.3 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004891/0.292, allocations: 362.5 kB / 419.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.2932, allocations: 344.8 kB / 420 MB, free: 4.441 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004744/0.298, allocations: 3.514 MB / 423.6 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.2984, allocations: 0.8111 MB / 424.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001337/0.2997, allocations: 0.7471 MB / 425.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.3005, allocations: 338.8 kB / 425.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3005, allocations: 0 / 425.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.3313, allocations: 13.63 MB / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.559/7.891, allocations: 19.28 kB / 439.1 MB, free: 1.188 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.csv --start-time 0 --stop-time 250 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_FlipFlop.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.FlipFlop_res.csv","/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