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.WiredX.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.WiredX,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.564/1.564, allocations: 171.1 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005618/0.0005619, allocations: 12 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.09859, allocations: 38.78 MB / 272.1 MB, free: 9.977 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.371/0.4696, allocations: 73.24 MB / 345.4 MB, free: 9.648 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.47, allocations: 67.97 kB / 345.4 MB, free: 9.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1599/0.6299, allocations: 43.32 MB / 388.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.63, allocations: 3.938 kB / 388.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.675e-05/0.63, allocations: 8 kB / 388.7 MB, free: 14.35 MB / 330.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.001591/0.6316, allocations: 1.071 MB / 389.8 MB, free: 13.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.6317, allocations: 12.03 kB / 389.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001404/0.6318, allocations: 46.56 kB / 389.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001933/0.632, allocations: 79.14 kB / 390 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006783/0.6327, allocations: 360 kB / 390.3 MB, free: 12.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.427e-05/0.6328, allocations: 20.19 kB / 390.3 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.6329, allocations: 20 kB / 390.3 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009242/0.6338, allocations: 303.1 kB / 390.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.6338, allocations: 0 / 390.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.054e-05/0.6339, allocations: 15.95 kB / 390.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.634, allocations: 0 / 390.7 MB, free: 12.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.6345, allocations: 160.5 kB / 390.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001936/0.6365, allocations: 0.7667 MB / 391.6 MB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.6372, allocations: 214.4 kB / 391.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.6372, allocations: 0 / 391.8 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009545/0.6382, allocations: 441.8 kB / 392.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.356e-06/0.6382, allocations: 0 / 392.2 MB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=29): time 0.002989/0.6412, allocations: 1.339 MB / 393.6 MB, free: 9.145 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000186/0.6415, allocations: 281 kB / 393.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001899/0.6434, allocations: 0.8351 MB / 394.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001486/0.6436, allocations: 41.69 kB / 394.7 MB, free: 7.922 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.6437, allocations: 176.5 kB / 394.9 MB, free: 7.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.6439, allocations: 71.19 kB / 394.9 MB, free: 7.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.848e-05/0.6439, allocations: 8 kB / 395 MB, free: 7.672 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.6441, allocations: 326.8 kB / 395.3 MB, free: 7.344 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005189/0.6446, allocations: 136.2 kB / 395.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005353/0.6452, allocations: 179.8 kB / 395.6 MB, free: 7.023 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006347/0.6458, allocations: 362.2 kB / 395.9 MB, free: 6.621 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.6459, allocations: 7.953 kB / 395.9 MB, free: 6.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002055/0.6479, allocations: 0.8151 MB / 396.8 MB, free: 5.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00021/0.6482, allocations: 250.1 kB / 397 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.6482, allocations: 4 kB / 397 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.6482, allocations: 0 / 397 MB, free: 5.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.033e-05/0.6483, allocations: 11.98 kB / 397 MB, free: 5.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.6483, allocations: 3.938 kB / 397 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004715/0.6488, allocations: 36.08 kB / 397.1 MB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000403/0.6492, allocations: 263.8 kB / 397.3 MB, free: 5.137 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.001124/0.6503, allocations: 0.6007 MB / 397.9 MB, free: 4.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002075/0.6506, allocations: 87 kB / 398 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003558/0.6509, allocations: 122.9 kB / 398.1 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.6509, allocations: 4 kB / 398.1 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.651, allocations: 0 / 398.1 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.651, allocations: 3.984 kB / 398.1 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003289/0.6543, allocations: 1.495 MB / 399.6 MB, free: 2.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.8e-06/0.6543, allocations: 0 / 399.6 MB, free: 2.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.851e-05/0.6544, allocations: 4 kB / 399.6 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.073e-06/0.6544, allocations: 0 / 399.6 MB, free: 2.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001118/0.6545, allocations: 47.97 kB / 399.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.6545, allocations: 0 / 399.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.6545, allocations: 0 / 399.7 MB, free: 2.602 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/0.6569, allocations: 1.039 MB / 400.7 MB, free: 1.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001096/0.6581, allocations: 431.7 kB / 401.1 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/0.6583, allocations: 20 kB / 401.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004519/0.6588, allocations: 31.97 kB / 401.2 MB, free: 1.004 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/0.6591, allocations: 79.84 kB / 401.3 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004255/0.6595, allocations: 267.6 kB / 401.5 MB, free: 0.6641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001637/0.6612, allocations: 0.6899 MB / 402.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6612, allocations: 0 / 402.2 MB, free: 15.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007558/0.662, allocations: 96 kB / 402.3 MB, free: 15.88 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: 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.002919/0.6649, allocations: 1.623 MB / 403.9 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001724/0.6667, allocations: 0.9053 MB / 404.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6667, allocations: 8.062 kB / 404.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00112/0.6679, allocations: 0.7686 MB / 405.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/0.6694, allocations: 220.1 kB / 405.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.6771, allocations: 3.36 MB / 409.2 MB, free: 8.652 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009153/0.6781, allocations: 0.9595 MB / 410.2 MB, free: 7.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/0.6784, allocations: 95.33 kB / 410.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6784, allocations: 0 / 410.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.103/3.782, allocations: 8.884 MB / 419.1 MB, free: 99.21 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat