Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.WiredX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wiredX.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.WiredX") Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003868, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08669/0.08711, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003523/0.09069, allocations: 1.434 MB / 309.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004417/0.09516, allocations: 0.9409 MB / 310.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001746/0.09539, allocations: 0 / 310.7 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000181/0.0956, allocations: 15.84 kB / 310.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.09583, allocations: 35.88 kB / 310.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005889/0.09645, allocations: 75.84 kB / 310.9 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004579/0.09693, allocations: 155.7 kB / 311 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.09717, allocations: 41.78 kB / 311 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001327/0.09852, allocations: 0.5225 MB / 311.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.09896, allocations: 151.6 kB / 311.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.0991, allocations: 8 kB / 311.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.742e-05/0.09922, allocations: 8 kB / 311.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.09952, allocations: 139.5 kB / 311.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.09978, allocations: 121.3 kB / 312 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.101, allocations: 0.5923 MB / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.806e-06/0.101, allocations: 0 / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.449e-06/0.101, allocations: 0 / 312.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.101, allocations: 0 / 312.6 MB, free: 12.77 MB / 266.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.002258/0.1033, allocations: 1.045 MB / 313.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.1034, allocations: 8.031 kB / 313.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003167/0.1037, allocations: 79.02 kB / 313.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009492/0.1047, allocations: 359.7 kB / 314.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.108e-05/0.1048, allocations: 16.19 kB / 314.1 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.105, allocations: 20 kB / 314.1 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.1062, allocations: 247.2 kB / 314.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.1062, allocations: 0 / 314.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.065e-05/0.1063, allocations: 12 kB / 314.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.1064, allocations: 0 / 314.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007534/0.1072, allocations: 148.5 kB / 314.5 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.1098, allocations: 0.7276 MB / 315.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009139/0.1108, allocations: 202.4 kB / 315.4 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.885e-05/0.1108, allocations: 4 kB / 315.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001183/0.112, allocations: 393.9 kB / 315.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 5.256e-06/0.1121, allocations: 0 / 315.8 MB, free: 9.305 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.003739/0.1158, allocations: 1.241 MB / 317.1 MB, free: 7.934 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002946/0.1162, allocations: 289.1 kB / 317.3 MB, free: 7.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003071/0.1193, allocations: 0.949 MB / 318.3 MB, free: 6.629 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.1195, allocations: 33.7 kB / 318.3 MB, free: 6.59 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.1197, allocations: 184.5 kB / 318.5 MB, free: 6.406 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001944/0.1199, allocations: 71.19 kB / 318.6 MB, free: 6.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.607e-05/0.12, allocations: 8 kB / 318.6 MB, free: 6.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002249/0.1202, allocations: 318.8 kB / 318.9 MB, free: 6.008 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006554/0.1209, allocations: 128.2 kB / 319 MB, free: 5.883 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006844/0.1216, allocations: 167.8 kB / 319.2 MB, free: 5.707 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008238/0.1225, allocations: 341.6 kB / 319.5 MB, free: 5.324 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.646e-06/0.1225, allocations: 0 / 319.5 MB, free: 5.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002516/0.125, allocations: 0.741 MB / 320.2 MB, free: 4.527 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003024/0.1254, allocations: 245.5 kB / 320.5 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.1254, allocations: 11.92 kB / 320.5 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.339e-05/0.1255, allocations: 8.078 kB / 320.5 MB, free: 4.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.69e-05/0.1255, allocations: 4 kB / 320.5 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.1256, allocations: 4 kB / 320.5 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006711/0.1263, allocations: 27.98 kB / 320.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002689/0.1265, allocations: 112.1 kB / 320.7 MB, free: 4.074 MB / 266.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.001516/0.1281, allocations: 0.6084 MB / 321.3 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.1284, allocations: 83.06 kB / 321.3 MB, free: 3.324 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005847/0.129, allocations: 134.8 kB / 321.5 MB, free: 3.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.643e-06/0.129, allocations: 7.938 kB / 321.5 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.679e-06/0.129, allocations: 0 / 321.5 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.638e-06/0.1291, allocations: 0 / 321.5 MB, free: 3.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004697/0.1338, allocations: 1.417 MB / 322.9 MB, free: 1.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/0.1339, allocations: 7.984 kB / 322.9 MB, free: 1.648 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.14e-05/0.1339, allocations: 7.953 kB / 322.9 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.724e-06/0.1339, allocations: 0 / 322.9 MB, free: 1.641 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001289/0.1341, allocations: 31.98 kB / 322.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.336e-06/0.1341, allocations: 0 / 322.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.214e-06/0.1341, allocations: 0 / 322.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003251/0.1374, allocations: 0.9647 MB / 323.9 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.1391, allocations: 411.8 kB / 324.3 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/0.1395, allocations: 31.94 kB / 324.3 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007039/0.1402, allocations: 35.92 kB / 324.4 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/0.1406, allocations: 59.92 kB / 324.4 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003103/0.1409, allocations: 107.9 kB / 324.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002471/0.1434, allocations: 0.686 MB / 325.2 MB, free: 15.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.428e-06/0.1434, allocations: 0 / 325.2 MB, free: 15.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001177/0.1446, allocations: 99.84 kB / 325.3 MB, free: 15.14 MB / 282.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.0003866/0.1451, allocations: 143.2 kB / 325.5 MB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.1476, allocations: 0.8857 MB / 326.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.1476, allocations: 0 / 326.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.1492, allocations: 0.7569 MB / 327.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001936/0.1512, allocations: 228.7 kB / 327.3 MB, free: 12.94 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005123/0.1564, allocations: 1.508 MB / 328.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.1579, allocations: 0.9559 MB / 329.8 MB, free: 10.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.1582, allocations: 51.34 kB / 329.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of SimCode: time 2.435e-06/0.1583, allocations: 0 / 329.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of Templates: time 0.01319/0.1715, allocations: 5.273 MB / 335.1 MB, free: 5.07 MB / 282.7 MB