Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001123/0.001123, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.426/1.426, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.0009344/0.0009344, allocations: 87.77 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003025/0.0003027, allocations: 11.98 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 47.56 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09541/0.3585, allocations: 78.18 MB / 454.1 MB, free: 2.484 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.3588, allocations: 71.95 kB / 454.1 MB, free: 2.414 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01914/0.378, allocations: 7.097 MB / 461.2 MB, free: 11.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.121e-06/0.3781, allocations: 7.984 kB / 461.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.518e-05/0.3781, allocations: 4 kB / 461.3 MB, free: 11.3 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.00116/0.3793, allocations: 0.6136 MB / 461.9 MB, free: 10.62 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.3793, allocations: 8.031 kB / 461.9 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001179/0.3794, allocations: 54.55 kB / 461.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3796, allocations: 27.72 kB / 462 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.3801, allocations: 263.3 kB / 462.2 MB, free: 10.22 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.669e-05/0.3802, allocations: 41.7 kB / 462.3 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.231e-05/0.3803, allocations: 24 kB / 462.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/0.3809, allocations: 252.9 kB / 462.5 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.381, allocations: 8 kB / 462.5 MB, free: 9.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.666e-05/0.381, allocations: 4 kB / 462.5 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.381, allocations: 4 kB / 462.5 MB, free: 9.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005386/0.3815, allocations: 216.3 kB / 462.8 MB, free: 9.672 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.3831, allocations: 0.7612 MB / 463.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.3837, allocations: 309.5 kB / 463.8 MB, free: 8.535 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.3838, allocations: 11.92 kB / 463.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005756/0.3843, allocations: 329.9 kB / 464.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.555e-06/0.3844, allocations: 0 / 464.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001421/0.3858, allocations: 0.7538 MB / 464.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.3859, allocations: 212 kB / 465.1 MB, free: 7.113 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.3861, allocations: 167 kB / 465.3 MB, free: 6.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.3862, allocations: 33.7 kB / 465.3 MB, free: 6.906 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.3863, allocations: 136.8 kB / 465.4 MB, free: 6.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.6e-05/0.3864, allocations: 75 kB / 465.5 MB, free: 6.695 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.613e-05/0.3864, allocations: 8 kB / 465.5 MB, free: 6.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.3866, allocations: 334.8 kB / 465.8 MB, free: 6.352 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.3869, allocations: 116.6 kB / 466 MB, free: 6.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.3872, allocations: 175.3 kB / 466.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.3875, allocations: 225.3 kB / 466.4 MB, free: 5.805 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.3876, allocations: 32 / 466.4 MB, free: 5.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007238/0.3883, allocations: 458.9 kB / 466.8 MB, free: 5.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.913e-05/0.3884, allocations: 93.09 kB / 466.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.3884, allocations: 8.094 kB / 466.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.3884, allocations: 0 / 466.9 MB, free: 5.215 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.3887, allocations: 43.91 kB / 466.9 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3887, allocations: 4 kB / 466.9 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.3889, allocations: 35.78 kB / 467 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.389, allocations: 16 kB / 467 MB, free: 5.117 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.0002517/0.3892, allocations: 236 kB / 467.2 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.522e-05/0.3893, allocations: 19.81 kB / 467.2 MB, free: 4.848 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.641e-05/0.3893, allocations: 26.59 kB / 467.3 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.3894, allocations: 4 kB / 467.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.3894, allocations: 0 / 467.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3894, allocations: 7.922 kB / 467.3 MB, free: 4.809 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.3907, allocations: 0.9047 MB / 468.2 MB, free: 3.836 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.3907, allocations: 8 kB / 468.2 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.3908, allocations: 27.91 kB / 468.2 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3909, allocations: 0 / 468.2 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.3909, allocations: 8 kB / 468.2 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.3909, allocations: 0 / 468.2 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.3909, allocations: 4 kB / 468.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.3918, allocations: 0.6234 MB / 468.9 MB, free: 3.137 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.397e-05/0.3919, allocations: 100.8 kB / 469 MB, free: 3.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.808e-05/0.392, allocations: 16 kB / 469 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.3922, allocations: 23.97 kB / 469 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.109e-05/0.3923, allocations: 23.97 kB / 469 MB, free: 2.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.3923, allocations: 15.97 kB / 469 MB, free: 2.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.3924, allocations: 139.2 kB / 469.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.562e-06/0.3924, allocations: 0 / 469.2 MB, free: 2.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003862/0.3928, allocations: 79.78 kB / 469.3 MB, free: 2.727 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.001272/0.3941, allocations: 1.186 MB / 470.4 MB, free: 1.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008132/0.3949, allocations: 0.5526 MB / 471 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.395, allocations: 4.188 kB / 471 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004702/0.3954, allocations: 410.5 kB / 471.4 MB, free: 492 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.396, allocations: 128.2 kB / 471.5 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.3988, allocations: 2.325 MB / 473.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.3991, allocations: 0.7449 MB / 474.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001779/0.3993, allocations: 57.83 kB / 474.6 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3994, allocations: 67.41 kB / 474.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of SimCode: time 3.216e-06/0.3994, allocations: 0 / 474.7 MB, free: 13.07 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01952/0.4189, allocations: 5.846 MB / 480.6 MB, free: 7.254 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003045/0.4193, allocations: 183.2 kB / 480.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.233, allocations: 4 kB / 480.7 MB, free: 7.008 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat