Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Digital_Examples_DFFREG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.587/1.587, allocations: 171.1 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003997, allocations: 8 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08176/0.08221, allocations: 38.77 MB / 272.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3358/0.418, allocations: 72.66 MB / 344.8 MB, free: 10.34 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.4184, allocations: 71.97 kB / 344.8 MB, free: 10.27 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1094/0.5278, allocations: 27.7 MB / 372.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.5279, allocations: 0 / 372.5 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.011e-05/0.5279, allocations: 12 kB / 372.6 MB, free: 14.57 MB / 314.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.002357/0.5303, allocations: 1.143 MB / 373.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.5304, allocations: 8.031 kB / 373.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000227/0.5306, allocations: 62.55 kB / 373.8 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.5309, allocations: 86.97 kB / 373.9 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.5321, allocations: 427.5 kB / 374.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-05/0.5322, allocations: 16 kB / 374.3 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.5324, allocations: 31.94 kB / 374.3 MB, free: 12.67 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00193/0.5344, allocations: 0.5022 MB / 374.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5344, allocations: 0 / 374.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001235/0.5345, allocations: 16 kB / 374.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5346, allocations: 0 / 374.8 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.536, allocations: 364 kB / 375.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002677/0.5387, allocations: 0.8559 MB / 376 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.5404, allocations: 0.5101 MB / 376.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.5404, allocations: 0 / 376.6 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001836/0.5423, allocations: 0.6509 MB / 377.2 MB, free: 9.668 MB / 314.7 MB Notification: Performance of pre-optimization done (n=34): time 6.533e-06/0.5423, allocations: 3.984 kB / 377.2 MB, free: 9.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=34): time 0.005544/0.5479, allocations: 1.779 MB / 379 MB, free: 7.781 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003211/0.5482, allocations: 279.3 kB / 379.3 MB, free: 7.453 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003344/0.5516, allocations: 1.027 MB / 380.3 MB, free: 6.418 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.5519, allocations: 49.69 kB / 380.3 MB, free: 6.363 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.5521, allocations: 188.5 kB / 380.5 MB, free: 6.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.5524, allocations: 79.09 kB / 380.6 MB, free: 6.102 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.5525, allocations: 12 kB / 380.6 MB, free: 6.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.5527, allocations: 322.8 kB / 380.9 MB, free: 5.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.554, allocations: 344.1 kB / 381.3 MB, free: 5.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.5553, allocations: 375.2 kB / 381.6 MB, free: 5.055 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.5565, allocations: 491.5 kB / 382.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.5565, allocations: 0 / 382.1 MB, free: 4.531 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002653/0.5592, allocations: 1.098 MB / 383.2 MB, free: 3.383 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002698/0.5595, allocations: 247.8 kB / 383.4 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5595, allocations: 0 / 383.4 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.5595, allocations: 0 / 383.4 MB, free: 3.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.081e-05/0.5596, allocations: 11.92 kB / 383.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.5596, allocations: 0 / 383.5 MB, free: 3.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005807/0.5602, allocations: 47.89 kB / 383.5 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002713/0.5605, allocations: 148.2 kB / 383.7 MB, free: 2.895 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.001518/0.562, allocations: 0.7602 MB / 384.4 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/0.5623, allocations: 90.97 kB / 384.5 MB, free: 1.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00044/0.5627, allocations: 151.6 kB / 384.6 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5627, allocations: 4 kB / 384.7 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.5628, allocations: 0 / 384.7 MB, free: 1.828 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.5628, allocations: 3.984 kB / 384.7 MB, free: 1.824 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004333/0.5671, allocations: 1.947 MB / 386.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.5672, allocations: 0 / 386.6 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.5672, allocations: 7.938 kB / 386.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.346e-06/0.5672, allocations: 7.891 kB / 386.6 MB, free: 15.76 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/0.5674, allocations: 43.97 kB / 386.7 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.5674, allocations: 4 kB / 386.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5674, allocations: 0 / 386.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003173/0.5706, allocations: 1.365 MB / 388 MB, free: 14.29 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/0.5721, allocations: 0.5621 MB / 388.6 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002888/0.5724, allocations: 59.92 kB / 388.7 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005512/0.573, allocations: 39.81 kB / 388.7 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006592/0.5737, allocations: 243.7 kB / 388.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/0.574, allocations: 155.9 kB / 389.1 MB, free: 13.22 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00207/0.576, allocations: 0.8538 MB / 389.9 MB, free: 12.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.5761, allocations: 0 / 389.9 MB, free: 12.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008313/0.5769, allocations: 124 kB / 390.1 MB, free: 12.25 MB / 330.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.003818/0.5808, allocations: 2.013 MB / 392.1 MB, free: 10.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002905/0.5837, allocations: 1.516 MB / 393.6 MB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.5837, allocations: 0 / 393.6 MB, free: 8.566 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.5856, allocations: 1.109 MB / 394.7 MB, free: 7.371 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.5874, allocations: 279.9 kB / 395 MB, free: 7.102 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.5991, allocations: 4.924 MB / 399.9 MB, free: 2.102 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001159/0.6004, allocations: 1.035 MB / 400.9 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.6005, allocations: 75.42 kB / 401 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6006, allocations: 0 / 401 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.748/3.349, allocations: 9.341 MB / 410.3 MB, free: 7.488 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREG_res.mat does not exist to compare? outputFormat=mat