Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.877/1.877, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003403, allocations: 12 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09219, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3961/0.4884, allocations: 73.91 MB / 382.4 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.4887, allocations: 70.36 kB / 382.5 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02721/0.5159, allocations: 7.25 MB / 389.8 MB, free: 13.76 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.516, allocations: 7.875 kB / 389.8 MB, free: 13.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.516, allocations: 7.812 kB / 389.8 MB, free: 13.75 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009835/0.517, allocations: 0.5777 MB / 390.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.5171, allocations: 11.59 kB / 390.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.257e-05/0.5172, allocations: 65.8 kB / 390.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.087e-05/0.5172, allocations: 31.3 kB / 390.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.5177, allocations: 253.7 kB / 390.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.266e-05/0.5178, allocations: 54.02 kB / 390.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.754e-05/0.5179, allocations: 14.91 kB / 390.8 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007585/0.5186, allocations: 263.7 kB / 391 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.5187, allocations: 0 / 391 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.5187, allocations: 10.16 kB / 391 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.5187, allocations: 3.875 kB / 391.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007854/0.5195, allocations: 222.5 kB / 391.3 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001764/0.5213, allocations: 0.7624 MB / 392 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008398/0.5222, allocations: 309.2 kB / 392.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.5222, allocations: 7.906 kB / 392.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006807/0.5229, allocations: 323.6 kB / 392.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.837e-06/0.5229, allocations: 4 kB / 392.7 MB, free: 12.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.00176/0.5247, allocations: 0.757 MB / 393.4 MB, free: 12.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.5248, allocations: 197.6 kB / 393.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.525, allocations: 178 kB / 393.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.151e-05/0.5251, allocations: 33.45 kB / 393.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.348e-05/0.5252, allocations: 196.5 kB / 394 MB, free: 11.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.881e-05/0.5253, allocations: 84.06 kB / 394.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.263e-05/0.5253, allocations: 10.97 kB / 394.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.14e-05/0.5254, allocations: 324 kB / 394.4 MB, free: 11.15 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.5257, allocations: 104.2 kB / 394.5 MB, free: 11.15 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004073/0.5262, allocations: 210.7 kB / 394.7 MB, free: 11.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004118/0.5266, allocations: 188.6 kB / 394.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.5266, allocations: 3.938 kB / 394.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009961/0.5276, allocations: 422.5 kB / 395.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.006e-05/0.5277, allocations: 59.16 kB / 395.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.5277, allocations: 3.969 kB / 395.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.5277, allocations: 7.859 kB / 395.4 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003025/0.528, allocations: 49.11 kB / 395.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.5281, allocations: 7.812 kB / 395.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.5284, allocations: 37.08 kB / 395.5 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.5284, allocations: 15.25 kB / 395.5 MB, free: 10.75 MB / 314.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.0002769/0.5287, allocations: 234.7 kB / 395.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.767e-05/0.5288, allocations: 25.81 kB / 395.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.5289, allocations: 20.59 kB / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.5289, allocations: 8.219 kB / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.5289, allocations: 0 / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.5289, allocations: 2.719 kB / 395.8 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.5305, allocations: 0.9 MB / 396.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.5306, allocations: 3.875 kB / 396.7 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001929/0.5308, allocations: 25.7 kB / 396.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.5308, allocations: 0 / 396.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.816e-05/0.5308, allocations: 17.31 kB / 396.7 MB, free: 10.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.5308, allocations: 7.812 kB / 396.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.5309, allocations: 0 / 396.7 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.5321, allocations: 0.6199 MB / 397.4 MB, free: 9.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.309e-05/0.5322, allocations: 103.5 kB / 397.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.537e-05/0.5323, allocations: 14.08 kB / 397.5 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.5327, allocations: 32.78 kB / 397.5 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5328, allocations: 23.61 kB / 397.5 MB, free: 9.809 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.758e-05/0.5328, allocations: 18.53 kB / 397.5 MB, free: 9.805 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.533, allocations: 129.2 kB / 397.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.533, allocations: 0 / 397.7 MB, free: 9.727 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005538/0.5335, allocations: 79.22 kB / 397.8 MB, free: 9.719 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: 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.002092/0.5356, allocations: 1.193 MB / 398.9 MB, free: 8.977 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.537, allocations: 446.4 kB / 399.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5371, allocations: 0 / 399.4 MB, free: 8.84 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008791/0.538, allocations: 417.2 kB / 399.8 MB, free: 8.699 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.5392, allocations: 126.4 kB / 399.9 MB, free: 8.691 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004623/0.5438, allocations: 3.202 MB / 403.1 MB, free: 6.379 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.5441, allocations: 0.7434 MB / 403.9 MB, free: 5.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.5444, allocations: 66.7 kB / 403.9 MB, free: 5.672 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5444, allocations: 0 / 403.9 MB, free: 5.672 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.428/2.972, allocations: 3.966 MB / 407.9 MB, free: 5.254 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat