Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREG,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.739/1.739, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003668, allocations: 12 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08156/0.08197, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3429/0.425, allocations: 72.66 MB / 344.8 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002786/0.4253, allocations: 72.77 kB / 344.9 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09569/0.521, allocations: 27.72 MB / 372.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5211, allocations: 0 / 372.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.028e-05/0.5211, allocations: 8 kB / 372.6 MB, free: 9.035 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001766/0.5229, allocations: 1.144 MB / 373.7 MB, free: 7.848 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.5229, allocations: 8.031 kB / 373.7 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001511/0.5231, allocations: 64.09 kB / 373.8 MB, free: 7.777 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.5233, allocations: 90.97 kB / 373.9 MB, free: 7.688 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008827/0.5242, allocations: 422.1 kB / 374.3 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.555e-05/0.5243, allocations: 18.81 kB / 374.3 MB, free: 7.254 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.5244, allocations: 23.31 kB / 374.3 MB, free: 7.234 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.5257, allocations: 0.506 MB / 374.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.5258, allocations: 0 / 374.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.955e-05/0.5259, allocations: 19.48 kB / 374.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.5259, allocations: 0 / 374.9 MB, free: 6.824 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009249/0.5268, allocations: 369.3 kB / 375.2 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.5288, allocations: 0.8482 MB / 376.1 MB, free: 5.84 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.5299, allocations: 0.498 MB / 376.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.5299, allocations: 8 kB / 376.6 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001346/0.5313, allocations: 0.656 MB / 377.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.567e-06/0.5313, allocations: 0 / 377.2 MB, free: 4.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.004093/0.5354, allocations: 1.769 MB / 379 MB, free: 3.418 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002555/0.5358, allocations: 285.9 kB / 379.3 MB, free: 3.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002398/0.5382, allocations: 1.027 MB / 380.3 MB, free: 2.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002188/0.5384, allocations: 49 kB / 380.4 MB, free: 2.199 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.5386, allocations: 146.6 kB / 380.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.5388, allocations: 77.27 kB / 380.6 MB, free: 2.027 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-05/0.5389, allocations: 11 kB / 380.6 MB, free: 2.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.5391, allocations: 340.1 kB / 380.9 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009364/0.54, allocations: 343.4 kB / 381.3 MB, free: 1.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009009/0.5409, allocations: 372.1 kB / 381.6 MB, free: 1.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008953/0.5419, allocations: 498.4 kB / 382.1 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.5419, allocations: 0 / 382.1 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002713/0.5446, allocations: 1.115 MB / 383.2 MB, free: 15.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002707/0.5449, allocations: 244.9 kB / 383.5 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.272e-05/0.5449, allocations: 4 kB / 383.5 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.545, allocations: 0 / 383.5 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.441e-05/0.545, allocations: 4 kB / 383.5 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.102e-05/0.545, allocations: 3.984 kB / 383.5 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.5456, allocations: 36.05 kB / 383.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002921/0.5459, allocations: 156.2 kB / 383.7 MB, free: 15.28 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 7 * 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.001537/0.5475, allocations: 0.7679 MB / 384.4 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.5477, allocations: 86.97 kB / 384.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004459/0.5482, allocations: 151.6 kB / 384.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.5482, allocations: 4 kB / 384.7 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.5482, allocations: 4 kB / 384.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.5482, allocations: 7.922 kB / 384.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004489/0.5527, allocations: 1.951 MB / 386.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.5528, allocations: 0 / 386.6 MB, free: 12.15 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.585e-05/0.5528, allocations: 4 kB / 386.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.378e-06/0.5529, allocations: 3.953 kB / 386.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.553, allocations: 35.98 kB / 386.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.414e-06/0.553, allocations: 7.984 kB / 386.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.553, allocations: 0 / 386.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.5562, allocations: 1.365 MB / 388 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001592/0.5579, allocations: 0.5659 MB / 388.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002859/0.5582, allocations: 59.92 kB / 388.7 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000545/0.5587, allocations: 35.97 kB / 388.7 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000673/0.5594, allocations: 243.7 kB / 388.9 MB, free: 9.754 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000297/0.5597, allocations: 151.9 kB / 389.1 MB, free: 9.605 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002064/0.5618, allocations: 0.8577 MB / 389.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.5619, allocations: 0 / 389.9 MB, free: 8.754 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008331/0.5627, allocations: 124 kB / 390.1 MB, free: 8.633 MB / 314.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.delay.inertialDelaySensitive[2].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 7 * 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 Backend phase and start with SimCode phase: time 0.00384/0.5666, allocations: 2.016 MB / 392.1 MB, free: 6.547 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.5696, allocations: 1.507 MB / 393.6 MB, free: 4.953 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5696, allocations: 0 / 393.6 MB, free: 4.953 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001892/0.5715, allocations: 1.117 MB / 394.7 MB, free: 3.75 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.5736, allocations: 282.8 kB / 395 MB, free: 3.477 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/0.5883, allocations: 4.843 MB / 399.8 MB, free: 14.56 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.59, allocations: 1.027 MB / 400.9 MB, free: 13.51 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003115/0.5903, allocations: 46.19 kB / 400.9 MB, free: 13.46 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001917/0.5905, allocations: 79.41 kB / 401 MB, free: 13.39 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5906, allocations: 0 / 401 MB, free: 13.39 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09609/0.6867, allocations: 16.37 MB / 417.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.6869, allocations: 168.5 kB / 417.5 MB, free: 12.56 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.778/3.465, allocations: 4 kB / 417.5 MB, free: 12.56 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat