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.NXFER.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.NXFER,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.133/2.133, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004873/0.0004874, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09726, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.446/0.5433, allocations: 77.11 MB / 385.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.5436, allocations: 69.16 kB / 385.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05014/0.5938, allocations: 16.41 MB / 402.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5938, allocations: 0 / 402.1 MB, free: 13.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.5939, allocations: 3.75 kB / 402.1 MB, free: 13.03 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007072/0.5946, allocations: 0.6623 MB / 402.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.5946, allocations: 15.72 kB / 402.8 MB, free: 12.38 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.178e-05/0.5947, allocations: 37.72 kB / 402.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.5948, allocations: 42.84 kB / 402.9 MB, free: 12.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/0.5951, allocations: 252.2 kB / 403.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.5951, allocations: 7.656 kB / 403.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.037e-05/0.5952, allocations: 3.875 kB / 403.1 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.5956, allocations: 137.7 kB / 403.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.5956, allocations: 0 / 403.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.5956, allocations: 3.844 kB / 403.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.5957, allocations: 3.938 kB / 403.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.5959, allocations: 75.66 kB / 403.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.5966, allocations: 449.3 kB / 403.8 MB, free: 11.65 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.5969, allocations: 96.03 kB / 403.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.5969, allocations: 3.875 kB / 403.9 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.5973, allocations: 210.8 kB / 404.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.475e-06/0.5973, allocations: 0 / 404.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.001138/0.5985, allocations: 0.6132 MB / 404.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.68e-05/0.5986, allocations: 165.9 kB / 404.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00077/0.5993, allocations: 459 kB / 405.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.749e-05/0.5994, allocations: 33.08 kB / 405.4 MB, free: 10.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.169e-05/0.5995, allocations: 170.9 kB / 405.5 MB, free: 10.45 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.938e-05/0.5995, allocations: 27.16 kB / 405.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.5996, allocations: 3.875 kB / 405.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.215e-05/0.5996, allocations: 322.3 kB / 405.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001898/0.5998, allocations: 55.97 kB / 405.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.6, allocations: 72.94 kB / 406 MB, free: 10.08 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.6003, allocations: 162.4 kB / 406.2 MB, free: 9.949 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.6003, allocations: 0 / 406.2 MB, free: 9.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007331/0.601, allocations: 378.8 kB / 406.5 MB, free: 9.754 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.207e-05/0.6011, allocations: 126.3 kB / 406.7 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.6011, allocations: 0 / 406.7 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.6012, allocations: 7.828 kB / 406.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.318e-05/0.6012, allocations: 0 / 406.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.6012, allocations: 0 / 406.7 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002482/0.6015, allocations: 22.86 kB / 406.7 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.333e-05/0.6016, allocations: 54.44 kB / 406.7 MB, free: 9.605 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0004519/0.602, allocations: 365.9 kB / 407.1 MB, free: 9.312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.438e-05/0.6021, allocations: 43.03 kB / 407.1 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.6023, allocations: 64.16 kB / 407.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.6023, allocations: 0 / 407.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.6023, allocations: 8.047 kB / 407.2 MB, free: 9.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.6023, allocations: 3.938 kB / 407.2 MB, free: 9.246 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.6035, allocations: 0.7968 MB / 408 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6036, allocations: 0 / 408 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-05/0.6036, allocations: 7.875 kB / 408 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.309e-06/0.6036, allocations: 0 / 408 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.6036, allocations: 22.19 kB / 408 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.6036, allocations: 3.938 kB / 408 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6037, allocations: 0 / 408 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008327/0.6045, allocations: 0.5202 MB / 408.6 MB, free: 8.391 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004172/0.6049, allocations: 236.2 kB / 408.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.961e-05/0.605, allocations: 11.12 kB / 408.8 MB, free: 8.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.6053, allocations: 19.56 kB / 408.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/0.6054, allocations: 30.34 kB / 408.8 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.6055, allocations: 57.81 kB / 408.9 MB, free: 8.199 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006019/0.6061, allocations: 388.2 kB / 409.3 MB, free: 8.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6062, allocations: 0 / 409.3 MB, free: 8.008 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003921/0.6066, allocations: 45.88 kB / 409.3 MB, free: 8.008 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.001104/0.6077, allocations: 1.074 MB / 410.4 MB, free: 7.172 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006365/0.6083, allocations: 445.3 kB / 410.8 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.6084, allocations: 0 / 410.8 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003665/0.6087, allocations: 380.4 kB / 411.2 MB, free: 6.621 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007549/0.6095, allocations: 102 kB / 411.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003027/0.6125, allocations: 1.646 MB / 413 MB, free: 5.59 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.613, allocations: 0.8111 MB / 413.8 MB, free: 4.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.613, allocations: 25 kB / 413.8 MB, free: 4.816 MB / 314.7 MB Notification: Performance of SimCode: time 1.222e-06/0.613, allocations: 0 / 413.8 MB, free: 4.816 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.652/3.265, allocations: 3.128 MB / 416.9 MB, free: 3.215 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat