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.DFFREGSRH.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.DFFREGSRH,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.568/1.568, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004877/0.0004877, allocations: 8 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08039/0.08092, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3836/0.4646, allocations: 72.91 MB / 345 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002742/0.4649, allocations: 67.97 kB / 345.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1011/0.566, allocations: 30.44 MB / 375.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5661, allocations: 0 / 375.5 MB, free: 7 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.549e-05/0.5662, allocations: 12 kB / 375.5 MB, free: 6.988 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002496/0.5687, allocations: 1.472 MB / 377 MB, free: 5.488 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.5687, allocations: 8.031 kB / 377 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002577/0.569, allocations: 63.03 kB / 377.1 MB, free: 5.418 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002797/0.5693, allocations: 134.3 kB / 377.2 MB, free: 5.285 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.5705, allocations: 0.5162 MB / 377.7 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.689e-05/0.5706, allocations: 27.36 kB / 377.7 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.5707, allocations: 31.19 kB / 377.8 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.5724, allocations: 0.6217 MB / 378.4 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.5724, allocations: 0 / 378.4 MB, free: 4.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.767e-05/0.5725, allocations: 15 kB / 378.4 MB, free: 4.219 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.5725, allocations: 4 kB / 378.4 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.5737, allocations: 464.9 kB / 378.9 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002264/0.576, allocations: 1.037 MB / 379.9 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/0.5775, allocations: 0.6957 MB / 380.6 MB, free: 2.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.677e-05/0.5775, allocations: 3.984 kB / 380.6 MB, free: 2.617 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001558/0.5791, allocations: 0.7563 MB / 381.4 MB, free: 1.973 MB / 298.7 MB Notification: Performance of pre-optimization done (n=36): time 3.105e-06/0.5791, allocations: 0 / 381.4 MB, free: 1.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=36): time 0.004622/0.5838, allocations: 2.119 MB / 383.5 MB, free: 176 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002873/0.5841, allocations: 322 kB / 383.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/0.5875, allocations: 1.45 MB / 385.2 MB, free: 14.39 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002579/0.5878, allocations: 49.69 kB / 385.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.5881, allocations: 236.9 kB / 385.5 MB, free: 14.1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.5883, allocations: 83.14 kB / 385.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.905e-05/0.5884, allocations: 16 kB / 385.6 MB, free: 14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.5886, allocations: 326.8 kB / 385.9 MB, free: 13.67 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.5898, allocations: 443.9 kB / 386.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.591, allocations: 478.7 kB / 386.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.5922, allocations: 0.5792 MB / 387.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5922, allocations: 0 / 387.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003188/0.5954, allocations: 1.314 MB / 388.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003223/0.5957, allocations: 289.5 kB / 389 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5958, allocations: 0 / 389 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.233e-05/0.5958, allocations: 4 kB / 389 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.905e-05/0.5958, allocations: 0 / 389 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.5959, allocations: 4 kB / 389 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006577/0.5965, allocations: 51.75 kB / 389.1 MB, free: 10.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003093/0.5969, allocations: 155.9 kB / 389.2 MB, free: 10.21 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: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 8 * 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.001995/0.5989, allocations: 0.9403 MB / 390.2 MB, free: 9.215 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000312/0.5992, allocations: 134.5 kB / 390.3 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006251/0.5998, allocations: 203.8 kB / 390.5 MB, free: 8.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.313e-06/0.5999, allocations: 4 kB / 390.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.5999, allocations: 0 / 390.5 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5999, allocations: 3.984 kB / 390.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005189/0.6051, allocations: 2.329 MB / 392.8 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.6051, allocations: 0 / 392.8 MB, free: 6.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.187e-05/0.6052, allocations: 7.938 kB / 392.8 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.6052, allocations: 0 / 392.8 MB, free: 6.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.6053, allocations: 35.98 kB / 392.9 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/0.6054, allocations: 3.984 kB / 392.9 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6054, allocations: 0 / 392.9 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003581/0.609, allocations: 1.614 MB / 394.5 MB, free: 4.699 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002676/0.6117, allocations: 0.6552 MB / 395.1 MB, free: 4.023 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004248/0.6122, allocations: 67.95 kB / 395.2 MB, free: 3.957 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006748/0.6129, allocations: 43.81 kB / 395.3 MB, free: 3.914 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009511/0.6138, allocations: 351.6 kB / 395.6 MB, free: 3.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003055/0.6141, allocations: 159.9 kB / 395.8 MB, free: 3.414 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002991/0.6172, allocations: 1.204 MB / 397 MB, free: 2.207 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.6172, allocations: 4 kB / 397 MB, free: 2.203 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009761/0.6182, allocations: 152 kB / 397.1 MB, free: 2.055 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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 8 * 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.004328/0.6225, allocations: 2.272 MB / 399.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003745/0.6263, allocations: 1.924 MB / 401.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.6264, allocations: 0 / 401.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.6288, allocations: 1.389 MB / 402.7 MB, free: 12.19 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/0.6309, allocations: 300.4 kB / 403 MB, free: 11.9 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02221/0.6532, allocations: 6.889 MB / 409.9 MB, free: 4.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001933/0.6552, allocations: 1.162 MB / 411 MB, free: 3.742 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.6556, allocations: 151.4 kB / 411.2 MB, free: 3.594 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.6556, allocations: 4 kB / 411.2 MB, free: 3.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.776/3.432, allocations: 13.75 MB / 424.9 MB, free: 5.613 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat