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.001515/0.001519, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.891/1.891, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001173/0.001173, allocations: 88.44 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.000377, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3306, allocations: 47.57 MB / 374.6 MB, free: 45.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1244/0.4551, allocations: 78.17 MB / 452.8 MB, free: 2.465 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.4554, allocations: 75.97 kB / 452.9 MB, free: 2.391 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02813/0.4836, allocations: 7.1 MB / 460 MB, free: 11.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4836, allocations: 4 kB / 460 MB, free: 11.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.4836, allocations: 4 kB / 460 MB, free: 11.27 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001188/0.4848, allocations: 0.6136 MB / 460.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.94e-05/0.4849, allocations: 12.03 kB / 460.6 MB, free: 10.58 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.03e-05/0.485, allocations: 58.55 kB / 460.7 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.479e-05/0.4851, allocations: 27.7 kB / 460.7 MB, free: 10.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.4856, allocations: 251.3 kB / 460.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.54e-05/0.4858, allocations: 45.7 kB / 461 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.4858, allocations: 20 kB / 461 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008573/0.4867, allocations: 264.9 kB / 461.3 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.4867, allocations: 0 / 461.3 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.4868, allocations: 4 kB / 461.3 MB, free: 9.863 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.4868, allocations: 4 kB / 461.3 MB, free: 9.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008734/0.4877, allocations: 220.3 kB / 461.5 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001938/0.4896, allocations: 0.7651 MB / 462.2 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009732/0.4906, allocations: 311.3 kB / 462.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.4907, allocations: 7.938 kB / 462.6 MB, free: 8.492 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008037/0.4915, allocations: 325.9 kB / 462.9 MB, free: 8.145 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.244e-06/0.4915, allocations: 4 kB / 462.9 MB, free: 8.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.002053/0.4936, allocations: 0.7577 MB / 463.6 MB, free: 7.328 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/0.4937, allocations: 204 kB / 463.8 MB, free: 7.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.494, allocations: 163 kB / 464 MB, free: 6.922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.312e-05/0.494, allocations: 41.69 kB / 464 MB, free: 6.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.4942, allocations: 195.2 kB / 464.2 MB, free: 6.684 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.4943, allocations: 75 kB / 464.3 MB, free: 6.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.4943, allocations: 8 kB / 464.3 MB, free: 6.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.4945, allocations: 326.8 kB / 464.6 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.4949, allocations: 112.6 kB / 464.7 MB, free: 6.156 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004931/0.4954, allocations: 179.3 kB / 464.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005104/0.4959, allocations: 229.3 kB / 465.1 MB, free: 5.723 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.496, allocations: 0 / 465.1 MB, free: 5.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001133/0.4971, allocations: 451 kB / 465.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.034e-05/0.4972, allocations: 93.09 kB / 465.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.4972, allocations: 0 / 465.7 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.4973, allocations: 4 kB / 465.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003155/0.4976, allocations: 43.91 kB / 465.7 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.52e-05/0.4976, allocations: 7.984 kB / 465.7 MB, free: 5.094 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.4979, allocations: 39.81 kB / 465.8 MB, free: 5.055 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.498, allocations: 12 kB / 465.8 MB, free: 5.043 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 () * Number of clocked 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.0003173/0.4983, allocations: 235.8 kB / 466 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.4984, allocations: 19.81 kB / 466 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.635e-05/0.4985, allocations: 22.66 kB / 466 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.4985, allocations: 8 kB / 466.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.4985, allocations: 0 / 466.1 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4985, allocations: 7.922 kB / 466.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.5005, allocations: 0.9008 MB / 467 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5005, allocations: 0 / 467 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.5007, allocations: 27.92 kB / 467 MB, free: 3.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.5007, allocations: 8.188 kB / 467 MB, free: 3.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.72e-05/0.5008, allocations: 8 kB / 467 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.5008, allocations: 3.938 kB / 467 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.5008, allocations: 0 / 467 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.5023, allocations: 0.6273 MB / 467.6 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.313e-05/0.5024, allocations: 96.81 kB / 467.7 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.773e-05/0.5025, allocations: 16 kB / 467.7 MB, free: 2.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003608/0.5029, allocations: 31.97 kB / 467.8 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.503, allocations: 23.95 kB / 467.8 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-05/0.5031, allocations: 15.98 kB / 467.8 MB, free: 2.863 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001599/0.5033, allocations: 131.2 kB / 467.9 MB, free: 2.734 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.786e-06/0.5033, allocations: 0 / 467.9 MB, free: 2.734 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004678/0.5037, allocations: 83.78 kB / 468 MB, free: 2.652 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: 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.001969/0.5057, allocations: 1.186 MB / 469.2 MB, free: 1.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001361/0.5071, allocations: 0.5487 MB / 469.8 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.5072, allocations: 0 / 469.8 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008319/0.508, allocations: 414.7 kB / 470.2 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009709/0.509, allocations: 121.8 kB / 470.3 MB, free: 304 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.5132, allocations: 2.353 MB / 472.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.5137, allocations: 0.7527 MB / 473.4 MB, free: 13.09 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.5139, allocations: 63.42 kB / 473.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5139, allocations: 0 / 473.5 MB, free: 13.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.5/3.014, allocations: 3.978 MB / 477.4 MB, free: 9.062 MB / 362.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