Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001156/0.001156, allocations: 199.1 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 227.2 MB / 245 MB, free: 5.77 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008134/0.0008135, allocations: 96.06 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002409/0.0002409, allocations: 8 kB / 358 MB, free: 9.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2005, allocations: 51.49 MB / 409.5 MB, free: 26.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08946/0.29, allocations: 80.33 MB / 489.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.2902, allocations: 71.97 kB / 489.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01741/0.3077, allocations: 7.344 MB / 497.2 MB, free: 2.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3077, allocations: 0 / 497.2 MB, free: 2.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/0.3077, allocations: 4 kB / 497.2 MB, free: 2.816 MB / 362.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.0008409/0.3086, allocations: 0.6215 MB / 497.9 MB, free: 2.129 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3086, allocations: 8.031 kB / 497.9 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.905e-05/0.3087, allocations: 58.48 kB / 497.9 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.3089, allocations: 43.64 kB / 498 MB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.3093, allocations: 251.4 kB / 498.2 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.951e-05/0.3093, allocations: 49.7 kB / 498.3 MB, free: 1.668 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.63e-05/0.3094, allocations: 16 kB / 498.3 MB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005571/0.31, allocations: 263.9 kB / 498.5 MB, free: 1.387 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-06/0.31, allocations: 0 / 498.5 MB, free: 1.387 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.31, allocations: 8 kB / 498.5 MB, free: 1.379 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.163e-06/0.31, allocations: 4 kB / 498.6 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.3105, allocations: 224.2 kB / 498.8 MB, free: 1.152 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001282/0.3118, allocations: 0.7642 MB / 499.5 MB, free: 336 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.3124, allocations: 307.1 kB / 499.8 MB, free: 20 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.3124, allocations: 4 kB / 499.8 MB, free: 16 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005011/0.3129, allocations: 329.4 kB / 0.4884 GB, free: 15.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.3129, allocations: 0 / 0.4884 GB, free: 15.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.001234/0.3142, allocations: 0.7514 MB / 0.4892 GB, free: 14.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.3143, allocations: 215.8 kB / 0.4894 GB, free: 14.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.3144, allocations: 165.4 kB / 0.4895 GB, free: 14.44 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.3145, allocations: 37.7 kB / 0.4896 GB, free: 14.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.041e-05/0.3146, allocations: 128.8 kB / 0.4897 GB, free: 14.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.3146, allocations: 78.95 kB / 0.4898 GB, free: 14.19 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.3147, allocations: 4 kB / 0.4898 GB, free: 14.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3148, allocations: 342.8 kB / 0.4901 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002339/0.315, allocations: 112.6 kB / 0.4902 GB, free: 13.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.3153, allocations: 187.3 kB / 0.4904 GB, free: 13.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.3156, allocations: 221.8 kB / 0.4906 GB, free: 13.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3156, allocations: 0 / 0.4906 GB, free: 13.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006685/0.3163, allocations: 455 kB / 0.491 GB, free: 12.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.014e-05/0.3164, allocations: 97.28 kB / 0.4911 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3164, allocations: 0 / 0.4911 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.3164, allocations: 7.938 kB / 0.4911 GB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.3166, allocations: 43.91 kB / 0.4912 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.3166, allocations: 4 kB / 0.4912 GB, free: 12.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001819/0.3168, allocations: 35.78 kB / 0.4912 GB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3168, allocations: 12 kB / 0.4912 GB, free: 12.6 MB / 378.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.000206/0.317, allocations: 239.8 kB / 0.4915 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.3171, allocations: 19.81 kB / 0.4915 GB, free: 12.33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.494e-05/0.3171, allocations: 22.66 kB / 0.4915 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.3172, allocations: 4 kB / 0.4915 GB, free: 12.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.3172, allocations: 7.984 kB / 0.4915 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3172, allocations: 3.984 kB / 0.4915 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.3184, allocations: 0.8969 MB / 0.4924 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3184, allocations: 0 / 0.4924 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.3185, allocations: 27.92 kB / 0.4924 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3185, allocations: 0 / 0.4924 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.708e-05/0.3185, allocations: 8 kB / 0.4924 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.458e-06/0.3185, allocations: 0 / 0.4924 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.3185, allocations: 15.88 kB / 0.4924 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009046/0.3195, allocations: 0.6234 MB / 0.493 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/0.3195, allocations: 96.84 kB / 0.4931 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.498e-05/0.3196, allocations: 16 kB / 0.4931 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.3198, allocations: 31.91 kB / 0.4932 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.3199, allocations: 19.97 kB / 0.4932 GB, free: 10.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-05/0.3199, allocations: 23.94 kB / 0.4932 GB, free: 10.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.96e-05/0.32, allocations: 123.2 kB / 0.4933 GB, free: 10.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.32, allocations: 0 / 0.4933 GB, free: 10.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003316/0.3204, allocations: 79.84 kB / 0.4934 GB, free: 10.21 MB / 378.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.001241/0.3216, allocations: 1.201 MB / 0.4946 GB, free: 8.977 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008124/0.3225, allocations: 0.5543 MB / 0.4951 GB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3225, allocations: 0 / 0.4951 GB, free: 8.387 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004805/0.323, allocations: 402.6 kB / 0.4955 GB, free: 7.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005695/0.3235, allocations: 125.2 kB / 0.4956 GB, free: 7.852 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.3262, allocations: 2.338 MB / 0.4979 GB, free: 5.441 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.3265, allocations: 0.7565 MB / 0.4987 GB, free: 4.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.3267, allocations: 57.88 kB / 0.4987 GB, free: 4.605 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3268, allocations: 69.05 kB / 0.4988 GB, free: 4.539 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3268, allocations: 0 / 0.4988 GB, free: 4.539 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1536/0.4804, allocations: 5.829 MB / 0.5045 GB, free: 96.62 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001344/0.4806, allocations: 178.1 kB / 0.5046 GB, free: 96.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.632/2.112, allocations: 3.938 kB / 0.5046 GB, free: 96.38 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat