Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.005/2.005, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 15.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09787, allocations: 44.5 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5201, allocations: 78.56 MB / 387.1 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.5205, allocations: 68.19 kB / 387.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1275/0.648, allocations: 42.87 MB / 430 MB, free: 4.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.648, allocations: 0 / 430 MB, free: 4.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.869e-05/0.6481, allocations: 15.62 kB / 430 MB, free: 4.562 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001186/0.6493, allocations: 1.054 MB / 431.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.6493, allocations: 7.406 kB / 431.1 MB, free: 3.598 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.6495, allocations: 53.44 kB / 431.2 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.6496, allocations: 78.2 kB / 431.2 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005922/0.6502, allocations: 362.4 kB / 431.6 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/0.6503, allocations: 15.88 kB / 431.6 MB, free: 3.23 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.6504, allocations: 23.45 kB / 431.6 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008031/0.6512, allocations: 299.3 kB / 431.9 MB, free: 3.105 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.6512, allocations: 4 kB / 431.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.365e-05/0.6513, allocations: 11.66 kB / 431.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.6513, allocations: 0 / 431.9 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004908/0.6518, allocations: 154.2 kB / 432.1 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.6535, allocations: 0.7701 MB / 432.9 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.6542, allocations: 217 kB / 433.1 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.6542, allocations: 3.875 kB / 433.1 MB, free: 2.57 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007564/0.655, allocations: 436.5 kB / 433.5 MB, free: 2.293 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.196e-06/0.655, allocations: 4 kB / 433.5 MB, free: 2.289 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002477/0.6575, allocations: 1.337 MB / 434.8 MB, free: 1.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.6576, allocations: 282.9 kB / 435.1 MB, free: 1.016 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001675/0.6593, allocations: 0.8341 MB / 436 MB, free: 332 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001479/0.6595, allocations: 40.95 kB / 436 MB, free: 288 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.6596, allocations: 183.6 kB / 436.2 MB, free: 124 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.6597, allocations: 64.45 kB / 436.2 MB, free: 68 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.63e-05/0.6598, allocations: 7.375 kB / 436.2 MB, free: 64 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.66, allocations: 325.7 kB / 436.6 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/0.6605, allocations: 142.8 kB / 436.7 MB, free: 15.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.6611, allocations: 180.1 kB / 436.9 MB, free: 15.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.6617, allocations: 360.6 kB / 437.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.6617, allocations: 0 / 437.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002047/0.6638, allocations: 0.8122 MB / 438 MB, free: 14.38 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002301/0.664, allocations: 250 kB / 438.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.664, allocations: 0 / 438.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.6641, allocations: 0 / 438.3 MB, free: 14.1 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.208e-05/0.6641, allocations: 15.92 kB / 438.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.6642, allocations: 0 / 438.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004803/0.6646, allocations: 34.89 kB / 438.3 MB, free: 14.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004257/0.6651, allocations: 263.8 kB / 438.6 MB, free: 13.8 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * 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.001156/0.6663, allocations: 0.6164 MB / 439.2 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.6665, allocations: 75.16 kB / 439.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003557/0.6668, allocations: 122.6 kB / 439.4 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.6669, allocations: 4 kB / 439.4 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.6669, allocations: 3.938 kB / 439.4 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.6669, allocations: 3.984 kB / 439.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00328/0.6702, allocations: 1.493 MB / 440.9 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.6702, allocations: 4 kB / 440.9 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.965e-05/0.6703, allocations: 4 kB / 440.9 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.987e-06/0.6703, allocations: 4 kB / 440.9 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.6704, allocations: 44.41 kB / 441 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/0.6705, allocations: 0 / 441 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6705, allocations: 3.938 kB / 441 MB, free: 11.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.6728, allocations: 1.037 MB / 442 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001094/0.674, allocations: 426.1 kB / 442.4 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000222/0.6742, allocations: 29.06 kB / 442.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.6747, allocations: 27.97 kB / 442.5 MB, free: 10.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.675, allocations: 71.05 kB / 442.5 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004229/0.6754, allocations: 270.6 kB / 442.8 MB, free: 9.906 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001608/0.6771, allocations: 0.6913 MB / 443.5 MB, free: 9.309 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6771, allocations: 0 / 443.5 MB, free: 9.309 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007063/0.6778, allocations: 92 kB / 443.6 MB, free: 9.219 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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * 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.00298/0.6808, allocations: 1.631 MB / 445.2 MB, free: 7.512 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.6827, allocations: 0.9208 MB / 446.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.6827, allocations: 0 / 446.1 MB, free: 6.492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001217/0.684, allocations: 0.7684 MB / 446.9 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001976/0.686, allocations: 222.9 kB / 447.1 MB, free: 5.406 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007949/0.694, allocations: 3.348 MB / 450.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009091/0.6949, allocations: 0.9559 MB / 451.4 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.6953, allocations: 91.33 kB / 451.5 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6953, allocations: 3.938 kB / 451.5 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.964/3.659, allocations: 8.895 MB / 460.4 MB, free: 7.859 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat