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.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_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.032/2.032, allocations: 194.9 MB / 211.1 MB, free: 7.602 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003524, allocations: 8 kB / 264.1 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.293, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.441, allocations: 77.11 MB / 385.7 MB, free: 15.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.4413, allocations: 75.97 kB / 385.8 MB, free: 15.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07219/0.5135, allocations: 16.4 MB / 402.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.983e-06/0.5136, allocations: 0 / 402.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.5136, allocations: 4 kB / 402.2 MB, free: 14.96 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009185/0.5145, allocations: 0.6721 MB / 402.8 MB, free: 14.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.5146, allocations: 12.03 kB / 402.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.011e-05/0.5147, allocations: 38.56 kB / 402.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.855e-05/0.5148, allocations: 39.58 kB / 402.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003996/0.5152, allocations: 253.5 kB / 403.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.5152, allocations: 8 kB / 403.2 MB, free: 13.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.5153, allocations: 8 kB / 403.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.5157, allocations: 129.5 kB / 403.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5157, allocations: 0 / 403.3 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.5158, allocations: 4 kB / 403.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.5158, allocations: 3.938 kB / 403.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002541/0.5161, allocations: 71.92 kB / 403.4 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009381/0.517, allocations: 456.5 kB / 403.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003238/0.5174, allocations: 98.48 kB / 403.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.026e-06/0.5174, allocations: 0 / 403.9 MB, free: 13.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004409/0.5178, allocations: 206.8 kB / 404.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.294e-06/0.5179, allocations: 0 / 404.1 MB, free: 12.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.001364/0.5192, allocations: 0.6152 MB / 404.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.5194, allocations: 166.2 kB / 404.9 MB, free: 11.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009439/0.5203, allocations: 468.5 kB / 405.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.5204, allocations: 29.7 kB / 405.4 MB, free: 11.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.517e-05/0.5205, allocations: 97.12 kB / 405.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.508e-05/0.5206, allocations: 23.72 kB / 405.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.5206, allocations: 8 kB / 405.5 MB, free: 11.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5208, allocations: 322.8 kB / 405.8 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.521, allocations: 59.91 kB / 405.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000247/0.5212, allocations: 69.69 kB / 406 MB, free: 10.81 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002929/0.5216, allocations: 171.2 kB / 406.1 MB, free: 10.62 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.5216, allocations: 3.938 kB / 406.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000903/0.5225, allocations: 384.3 kB / 406.5 MB, free: 10.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.5226, allocations: 125.3 kB / 406.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.5226, allocations: 0 / 406.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.5227, allocations: 4.078 kB / 406.6 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.574e-05/0.5227, allocations: 8 kB / 406.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.5227, allocations: 0 / 406.6 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.523, allocations: 19.98 kB / 406.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.5231, allocations: 55.94 kB / 406.7 MB, free: 9.977 MB / 346.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.0005644/0.5237, allocations: 362.8 kB / 407.1 MB, free: 9.586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.98e-05/0.5238, allocations: 43.53 kB / 407.1 MB, free: 9.543 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001538/0.5239, allocations: 63.14 kB / 407.2 MB, free: 9.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.206e-06/0.5239, allocations: 7.984 kB / 407.2 MB, free: 9.477 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.524, allocations: 4.062 kB / 407.2 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.768e-06/0.524, allocations: 3.938 kB / 407.2 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.5255, allocations: 0.7939 MB / 408 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.5256, allocations: 0 / 408 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.374e-05/0.5256, allocations: 4 kB / 408 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.5256, allocations: 0 / 408 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.5257, allocations: 23.94 kB / 408 MB, free: 8.566 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.5257, allocations: 4 kB / 408 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.5257, allocations: 0 / 408 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.5268, allocations: 0.5136 MB / 408.5 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005449/0.5273, allocations: 248.3 kB / 408.8 MB, free: 7.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.602e-05/0.5274, allocations: 11.98 kB / 408.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002453/0.5277, allocations: 15.95 kB / 408.8 MB, free: 7.719 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/0.5278, allocations: 27.97 kB / 408.8 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.528, allocations: 63.92 kB / 408.9 MB, free: 7.629 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007552/0.5287, allocations: 386.9 kB / 409.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5287, allocations: 0 / 409.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004045/0.5292, allocations: 44 kB / 409.3 MB, free: 7.211 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: 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.001477/0.5306, allocations: 1.079 MB / 410.4 MB, free: 6.082 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008157/0.5315, allocations: 437.5 kB / 410.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5315, allocations: 0 / 410.8 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004965/0.532, allocations: 373.6 kB / 411.2 MB, free: 5.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007664/0.5328, allocations: 101.3 kB / 411.3 MB, free: 5.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003808/0.5366, allocations: 1.603 MB / 412.9 MB, free: 3.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006892/0.5374, allocations: 0.8064 MB / 413.7 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.399e-05/0.5375, allocations: 8.656 kB / 413.7 MB, free: 2.582 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.749e-05/0.5375, allocations: 27.42 kB / 413.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5375, allocations: 0 / 413.7 MB, free: 2.555 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.35/0.8875, allocations: 5.3 MB / 419 MB, free: 95.72 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002347/0.8878, allocations: 169.9 kB / 419.2 MB, free: 95.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/3.431, allocations: 7.875 kB / 419.2 MB, free: 95.47 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.NXFER_res.mat does not exist to compare? outputFormat=mat