Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00267/0.002669, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.119/2.119, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001111, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.75e-05/3.765e-05, allocations: 8 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.11, allocations: 47.58 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4099/0.5199, allocations: 78.07 MB / 447.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002729/0.5203, allocations: 71.22 kB / 447.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03031/0.5506, allocations: 7.107 MB / 454.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5507, allocations: 0 / 454.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.926e-05/0.5507, allocations: 8 kB / 454.4 MB, free: 8.902 MB / 330.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.001231/0.5519, allocations: 0.5937 MB / 455 MB, free: 8.266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.552, allocations: 8.031 kB / 455 MB, free: 8.258 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001093/0.5521, allocations: 54.17 kB / 455.1 MB, free: 8.207 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.5523, allocations: 27.62 kB / 455.1 MB, free: 8.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006214/0.5529, allocations: 255.5 kB / 455.4 MB, free: 7.902 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.553, allocations: 53.56 kB / 455.4 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.122e-05/0.5531, allocations: 15.75 kB / 455.4 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005862/0.5537, allocations: 229.8 kB / 455.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.5537, allocations: 0 / 455.7 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.762e-05/0.5537, allocations: 7.812 kB / 455.7 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.5538, allocations: 7.984 kB / 455.7 MB, free: 7.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.5542, allocations: 161.3 kB / 455.8 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.5564, allocations: 0.7666 MB / 456.6 MB, free: 6.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.557, allocations: 263.2 kB / 456.9 MB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004717/0.5575, allocations: 205 kB / 457.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.921e-05/0.5576, allocations: 0 / 457.1 MB, free: 6.523 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005852/0.5582, allocations: 301.9 kB / 457.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 2.475e-06/0.5582, allocations: 0 / 457.4 MB, free: 6.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009772/0.5592, allocations: 404.2 kB / 457.7 MB, free: 5.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001714/0.5594, allocations: 224.8 kB / 458 MB, free: 5.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.5596, allocations: 167.3 kB / 458.1 MB, free: 5.496 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.585e-05/0.5597, allocations: 37.58 kB / 458.2 MB, free: 5.461 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.5599, allocations: 196.4 kB / 458.4 MB, free: 5.281 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.56, allocations: 84.11 kB / 458.4 MB, free: 5.211 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.56, allocations: 3.562 kB / 458.4 MB, free: 5.211 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5602, allocations: 328.1 kB / 458.8 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.5605, allocations: 91.12 kB / 458.9 MB, free: 4.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.5608, allocations: 161 kB / 459 MB, free: 4.676 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003578/0.5612, allocations: 198.7 kB / 459.2 MB, free: 4.496 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.349e-06/0.5612, allocations: 0 / 459.2 MB, free: 4.496 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008324/0.562, allocations: 401.2 kB / 459.6 MB, free: 4.148 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.5622, allocations: 104.9 kB / 459.7 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.5622, allocations: 0 / 459.7 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/0.5622, allocations: 4 kB / 459.7 MB, free: 4.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/0.5626, allocations: 39.91 kB / 459.7 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.5626, allocations: 4 kB / 459.7 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003476/0.563, allocations: 35.08 kB / 459.8 MB, free: 3.957 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.563, allocations: 8.188 kB / 459.8 MB, free: 3.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],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],$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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.0002973/0.5633, allocations: 222 kB / 460 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.704e-05/0.5634, allocations: 31.66 kB / 460 MB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.886e-05/0.5635, allocations: 29.53 kB / 460.1 MB, free: 3.676 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.5635, allocations: 4 kB / 460.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.5635, allocations: 0 / 460.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.5635, allocations: 0 / 460.1 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001837/0.5654, allocations: 0.9556 MB / 461 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.5654, allocations: 0 / 461 MB, free: 2.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.5657, allocations: 31.92 kB / 461.1 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.5657, allocations: 0 / 461.1 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.476e-05/0.5658, allocations: 12.02 kB / 461.1 MB, free: 2.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.5658, allocations: 8 kB / 461.1 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.5658, allocations: 0 / 461.1 MB, free: 2.668 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.5669, allocations: 0.5688 MB / 461.6 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.567, allocations: 92.83 kB / 461.7 MB, free: 1.953 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.256e-05/0.5671, allocations: 19.98 kB / 461.8 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.5675, allocations: 27.98 kB / 461.8 MB, free: 1.906 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.5677, allocations: 27.89 kB / 461.8 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.5677, allocations: 15.95 kB / 461.8 MB, free: 1.863 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001663/0.5679, allocations: 131.2 kB / 462 MB, free: 1.734 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.568, allocations: 0 / 462 MB, free: 1.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005072/0.5685, allocations: 71.94 kB / 462 MB, free: 1.664 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.001651/0.5701, allocations: 1.214 MB / 463.2 MB, free: 412 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00103/0.5712, allocations: 0.5062 MB / 463.7 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.5713, allocations: 0 / 463.7 MB, free: 15.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006198/0.5719, allocations: 370.7 kB / 464.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.573, allocations: 124.5 kB / 464.2 MB, free: 15.35 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.5746, allocations: 471.5 kB / 464.7 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.5751, allocations: 0.7529 MB / 465.4 MB, free: 14.06 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001921/0.5753, allocations: 67.41 kB / 465.5 MB, free: 14 MB / 346.7 MB Notification: Performance of SimCode: time 8.045e-06/0.5753, allocations: 0 / 465.5 MB, free: 14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.493/3.068, allocations: 4.008 MB / 469.5 MB, free: 9.996 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat