Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.546/1.546, allocations: 171.1 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 12 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.07814, allocations: 38.76 MB / 272.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3648/0.443, allocations: 68.82 MB / 340.9 MB, free: 14.1 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.4434, allocations: 75.94 kB / 341 MB, free: 14.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03824/0.4817, allocations: 7.301 MB / 348.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.4817, allocations: 0 / 348.3 MB, free: 6.723 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.124e-05/0.4818, allocations: 8 kB / 348.3 MB, free: 6.715 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001525/0.4833, allocations: 0.5965 MB / 348.9 MB, free: 6.059 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.4834, allocations: 12.02 kB / 348.9 MB, free: 6.047 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001294/0.4835, allocations: 54.55 kB / 349 MB, free: 5.984 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001269/0.4837, allocations: 27.72 kB / 349 MB, free: 5.957 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007035/0.4844, allocations: 258.5 kB / 349.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.4845, allocations: 49.69 kB / 349.3 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.179e-05/0.4846, allocations: 24 kB / 349.3 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.4858, allocations: 264.7 kB / 349.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.4859, allocations: 3.938 kB / 349.6 MB, free: 5.316 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.486, allocations: 12 kB / 349.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.486, allocations: 4 kB / 349.6 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.4872, allocations: 212.3 kB / 349.8 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002586/0.4898, allocations: 0.7682 MB / 350.6 MB, free: 4.262 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001273/0.4911, allocations: 314.7 kB / 350.9 MB, free: 3.941 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.4911, allocations: 7.984 kB / 350.9 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001021/0.4921, allocations: 329.4 kB / 351.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 3.707e-06/0.4922, allocations: 0 / 351.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.002678/0.4949, allocations: 0.746 MB / 352 MB, free: 2.781 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001825/0.4951, allocations: 212 kB / 352.2 MB, free: 2.531 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.4954, allocations: 162.5 kB / 352.3 MB, free: 2.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.878e-05/0.4955, allocations: 45.69 kB / 352.4 MB, free: 2.312 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.4957, allocations: 195.2 kB / 352.6 MB, free: 2.121 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.4958, allocations: 79 kB / 352.6 MB, free: 2.043 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.63e-05/0.4959, allocations: 4 kB / 352.6 MB, free: 2.039 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.4961, allocations: 330.8 kB / 353 MB, free: 1.707 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/0.4966, allocations: 104.7 kB / 353.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006696/0.4973, allocations: 212.3 kB / 353.3 MB, free: 1.355 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006873/0.498, allocations: 187.3 kB / 353.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.178e-05/0.4981, allocations: 7.984 kB / 353.5 MB, free: 1.152 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001573/0.4996, allocations: 416.5 kB / 353.9 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.037e-05/0.4997, allocations: 64.02 kB / 353.9 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/0.4998, allocations: 4 kB / 353.9 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.623e-05/0.4998, allocations: 8.094 kB / 353.9 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.5003, allocations: 39.92 kB / 354 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.028e-05/0.5003, allocations: 7.984 kB / 354 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.5008, allocations: 39.78 kB / 354 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.5009, allocations: 12 kB / 354 MB, free: 0.543 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],dA_Converter.x[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],dA_Converter.x[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],dA_Converter.x[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],dA_Converter.x[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],dA_Converter.x[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],dA_Converter.x[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * 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.0004592/0.5013, allocations: 243.7 kB / 354.3 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.5015, allocations: 27.7 kB / 354.3 MB, free: 264 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.002e-05/0.5016, allocations: 22.66 kB / 354.3 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.5016, allocations: 4 kB / 354.3 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.5016, allocations: 0 / 354.3 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.5016, allocations: 0 / 354.3 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002687/0.5043, allocations: 0.9048 MB / 355.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.5044, allocations: 4 kB / 355.2 MB, free: 15.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002481/0.5046, allocations: 19.98 kB / 355.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.02e-05/0.5046, allocations: 3.984 kB / 355.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.871e-05/0.5047, allocations: 12.23 kB / 355.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.774e-06/0.5047, allocations: 4 kB / 355.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.5047, allocations: 0 / 355.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002027/0.5068, allocations: 0.6248 MB / 355.9 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.5071, allocations: 132.8 kB / 356 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.5072, allocations: 16 kB / 356.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004942/0.5077, allocations: 23.97 kB / 356.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/0.5079, allocations: 19.97 kB / 356.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.913e-05/0.5079, allocations: 15.98 kB / 356.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00021/0.5082, allocations: 139.2 kB / 356.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5082, allocations: 0 / 356.2 MB, free: 14.2 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000799/0.509, allocations: 75.94 kB / 356.3 MB, free: 14.13 MB / 298.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: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.002617/0.5116, allocations: 1.193 MB / 357.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.5133, allocations: 459.3 kB / 358 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5133, allocations: 4.188 kB / 358 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.5145, allocations: 410.5 kB / 358.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001289/0.5158, allocations: 118.7 kB / 358.5 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005834/0.5217, allocations: 3.209 MB / 361.7 MB, free: 8.566 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.5222, allocations: 0.7487 MB / 362.4 MB, free: 7.785 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.5224, allocations: 71.41 kB / 362.5 MB, free: 7.715 MB / 298.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5224, allocations: 4 kB / 362.5 MB, free: 7.711 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.385/2.907, allocations: 3.965 MB / 366.5 MB, free: 3.766 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat