Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.DFFREGSRH,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_DFFREGSRH",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.144/2.144, allocations: 194.9 MB / 211.1 MB, free: 7.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003617, allocations: 16 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2948, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.4442, allocations: 78.22 MB / 386.8 MB, free: 14.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.4446, allocations: 67.97 kB / 386.9 MB, free: 14.27 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3491/0.7937, allocations: 31.07 MB / 417.9 MB, free: 90.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.7937, allocations: 0.5938 kB / 417.9 MB, free: 90.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.959e-05/0.7938, allocations: 14.16 kB / 417.9 MB, free: 90.95 MB / 346.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.002519/0.7963, allocations: 1.507 MB / 419.4 MB, free: 89.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.024e-05/0.7964, allocations: 9.625 kB / 419.5 MB, free: 89.96 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000194/0.7966, allocations: 61.23 kB / 419.5 MB, free: 89.92 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.7969, allocations: 127.6 kB / 419.6 MB, free: 89.86 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.798, allocations: 0.5128 MB / 420.2 MB, free: 89.54 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.326e-05/0.7981, allocations: 27.05 kB / 420.2 MB, free: 89.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001502/0.7983, allocations: 28.62 kB / 420.2 MB, free: 89.53 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/0.8001, allocations: 0.6372 MB / 420.8 MB, free: 89.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.8001, allocations: 1.344 kB / 420.8 MB, free: 89.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.8002, allocations: 15.92 kB / 420.9 MB, free: 89.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.926e-06/0.8002, allocations: 7.406 kB / 420.9 MB, free: 89.49 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00109/0.8013, allocations: 464.4 kB / 421.3 MB, free: 89.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002354/0.8037, allocations: 1.089 MB / 422.4 MB, free: 89.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.805, allocations: 0.7016 MB / 423.1 MB, free: 89.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.8051, allocations: 3.531 kB / 423.1 MB, free: 89.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.8064, allocations: 0.7628 MB / 423.9 MB, free: 88.89 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.486e-06/0.8064, allocations: 0 / 423.9 MB, free: 88.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.004086/0.8105, allocations: 2.138 MB / 426 MB, free: 88.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/0.8107, allocations: 326.5 kB / 426.3 MB, free: 87.94 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003657/0.8144, allocations: 1.608 MB / 427.9 MB, free: 87.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.8147, allocations: 52.89 kB / 428 MB, free: 87.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003494/0.8151, allocations: 233.5 kB / 428.2 MB, free: 87.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.8153, allocations: 84.11 kB / 428.3 MB, free: 87.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.599e-05/0.8154, allocations: 18.23 kB / 428.3 MB, free: 87.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.8156, allocations: 379 kB / 428.7 MB, free: 86.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001067/0.8167, allocations: 449.6 kB / 429.1 MB, free: 86.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.8178, allocations: 483.9 kB / 429.6 MB, free: 86.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.8188, allocations: 0.5804 MB / 430.2 MB, free: 86.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.8189, allocations: 0 / 430.2 MB, free: 86.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.002906/0.8218, allocations: 1.367 MB / 431.6 MB, free: 85.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002316/0.8221, allocations: 287.4 kB / 431.8 MB, free: 85.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.8221, allocations: 0 / 431.8 MB, free: 85.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.8221, allocations: 7.906 kB / 431.8 MB, free: 85.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.24e-05/0.8222, allocations: 10.48 kB / 431.9 MB, free: 85.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.8222, allocations: 0 / 431.9 MB, free: 85.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007219/0.8229, allocations: 43.27 kB / 431.9 MB, free: 85.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002357/0.8232, allocations: 155.7 kB / 432 MB, free: 85.53 MB / 346.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.001826/0.825, allocations: 0.9905 MB / 433 MB, free: 84.92 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003228/0.8254, allocations: 136.6 kB / 433.2 MB, free: 84.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007067/0.8261, allocations: 247.2 kB / 433.4 MB, free: 84.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.8261, allocations: 3.094 kB / 433.4 MB, free: 84.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.8261, allocations: 3.75 kB / 433.4 MB, free: 84.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.8261, allocations: 3.562 kB / 433.4 MB, free: 84.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004665/0.8308, allocations: 2.418 MB / 435.8 MB, free: 83.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.8309, allocations: 0 / 435.8 MB, free: 83.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.366e-05/0.8309, allocations: 3.531 kB / 435.8 MB, free: 83.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.8309, allocations: 0 / 435.8 MB, free: 83.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.831, allocations: 39.44 kB / 435.9 MB, free: 83.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.8311, allocations: 0 / 435.9 MB, free: 83.45 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8311, allocations: 0 / 435.9 MB, free: 83.45 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003143/0.8342, allocations: 1.643 MB / 437.5 MB, free: 82.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001826/0.8361, allocations: 0.6778 MB / 438.2 MB, free: 81.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/0.8364, allocations: 59.36 kB / 438.3 MB, free: 81.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006114/0.8371, allocations: 37.14 kB / 438.3 MB, free: 81.72 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008111/0.8379, allocations: 358.2 kB / 438.6 MB, free: 81.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002232/0.8381, allocations: 166.9 kB / 438.8 MB, free: 81.31 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002888/0.841, allocations: 1.332 MB / 440.1 MB, free: 80.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.01e-07/0.8411, allocations: 0 / 440.1 MB, free: 80.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000934/0.842, allocations: 151.7 kB / 440.3 MB, free: 80.02 MB / 346.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.003561/0.8456, allocations: 2.284 MB / 442.6 MB, free: 77.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002886/0.8485, allocations: 1.931 MB / 444.5 MB, free: 76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.8486, allocations: 0 / 444.5 MB, free: 76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.8504, allocations: 1.397 MB / 445.9 MB, free: 74.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.8525, allocations: 302.7 kB / 446.2 MB, free: 74.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01682/0.8694, allocations: 7.278 MB / 453.5 MB, free: 67.79 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001254/0.8707, allocations: 1.214 MB / 454.7 MB, free: 66.69 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000529/0.8712, allocations: 197.5 kB / 454.9 MB, free: 66.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.8715, allocations: 153.7 kB / 455 MB, free: 66.42 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.8715, allocations: 0 / 455 MB, free: 66.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05488/0.9264, allocations: 22.22 MB / 477.3 MB, free: 44.12 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/0.9267, allocations: 176.3 kB / 477.4 MB, free: 43.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.267/4.194, allocations: 0 / 477.4 MB, free: 43.88 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH_res.mat does not exist to compare? outputFormat=mat