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.002257/0.002257, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.114/2.114, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 84.42 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.497e-05/3.518e-05, allocations: 7.938 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.3468, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.4703, allocations: 77.42 MB / 439.8 MB, free: 8.809 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4706, allocations: 68.53 kB / 439.9 MB, free: 8.742 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02942/0.5, allocations: 7.053 MB / 447 MB, free: 1.738 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.5001, allocations: 0 / 447 MB, free: 1.738 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.156e-05/0.5001, allocations: 8 kB / 447 MB, free: 1.73 MB / 331.1 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.001154/0.5013, allocations: 0.597 MB / 447.6 MB, free: 1.07 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.18e-05/0.5014, allocations: 8.031 kB / 447.6 MB, free: 1.062 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.5015, allocations: 31.62 kB / 447.6 MB, free: 1.031 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005749/0.5021, allocations: 254 kB / 447.9 MB, free: 0.7422 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.995e-05/0.5022, allocations: 49.69 kB / 447.9 MB, free: 0.6875 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.5022, allocations: 12 kB / 447.9 MB, free: 0.6758 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004703/0.5027, allocations: 156.3 kB / 448.1 MB, free: 0.5234 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.5033, allocations: 196.2 kB / 448.3 MB, free: 336 kB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.5033, allocations: 0 / 448.3 MB, free: 336 kB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.5033, allocations: 0 / 448.3 MB, free: 336 kB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.5033, allocations: 8 kB / 448.3 MB, free: 328 kB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001946/0.5053, allocations: 0.7137 MB / 449 MB, free: 15.55 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005368/0.5059, allocations: 248.4 kB / 449.2 MB, free: 15.3 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004172/0.5063, allocations: 189.4 kB / 449.4 MB, free: 15.11 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.934e-05/0.5063, allocations: 4 kB / 449.4 MB, free: 15.11 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005327/0.5069, allocations: 293.9 kB / 449.7 MB, free: 14.79 MB / 347.1 MB Notification: Performance of pre-optimization done (n=31): time 2.935e-06/0.5069, allocations: 0 / 449.7 MB, free: 14.79 MB / 347.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008489/0.5078, allocations: 319 kB / 450 MB, free: 14.47 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.5079, allocations: 226.5 kB / 450.2 MB, free: 14.2 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.5081, allocations: 156.8 kB / 450.4 MB, free: 14.05 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 4.73e-05/0.5082, allocations: 37.69 kB / 450.4 MB, free: 14 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.5083, allocations: 195 kB / 450.6 MB, free: 13.81 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.472e-05/0.5085, allocations: 71.02 kB / 450.7 MB, free: 13.74 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.838e-05/0.5085, allocations: 4 kB / 450.7 MB, free: 13.74 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5086, allocations: 326.8 kB / 451 MB, free: 13.41 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.5089, allocations: 84.69 kB / 451.1 MB, free: 13.32 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002886/0.5092, allocations: 156.2 kB / 451.2 MB, free: 13.14 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002513/0.5094, allocations: 99.17 kB / 451.3 MB, free: 13.05 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5095, allocations: 4 kB / 451.3 MB, free: 13.05 MB / 347.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007109/0.5102, allocations: 296 kB / 451.6 MB, free: 12.76 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.781e-05/0.5103, allocations: 97.09 kB / 451.7 MB, free: 12.64 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5103, allocations: 3.172 kB / 451.7 MB, free: 12.64 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.5104, allocations: 8 kB / 451.7 MB, free: 12.64 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003298/0.5107, allocations: 39.92 kB / 451.8 MB, free: 12.6 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.418e-05/0.5107, allocations: 11.94 kB / 451.8 MB, free: 12.59 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003196/0.5111, allocations: 19.89 kB / 451.8 MB, free: 12.57 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.5111, allocations: 15.98 kB / 451.8 MB, free: 12.55 MB / 347.1 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.0002908/0.5114, allocations: 207.4 kB / 452 MB, free: 12.33 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008455/0.5123, allocations: 357.2 kB / 452.4 MB, free: 11.97 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.117e-05/0.5124, allocations: 27.77 kB / 452.4 MB, free: 11.95 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.075e-05/0.5124, allocations: 19.41 kB / 452.4 MB, free: 11.93 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.321e-06/0.5125, allocations: 0 / 452.4 MB, free: 11.93 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.5125, allocations: 0 / 452.4 MB, free: 11.93 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.407e-06/0.5125, allocations: 7.984 kB / 452.4 MB, free: 11.92 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.5141, allocations: 0.8011 MB / 453.2 MB, free: 11.07 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.5141, allocations: 0 / 453.2 MB, free: 11.07 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001992/0.5143, allocations: 23.98 kB / 453.3 MB, free: 11.05 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.5143, allocations: 4 kB / 453.3 MB, free: 11.05 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.5144, allocations: 4.031 kB / 453.3 MB, free: 11.04 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5144, allocations: 4 kB / 453.3 MB, free: 11.04 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.5144, allocations: 4 kB / 453.3 MB, free: 11.04 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008827/0.5153, allocations: 469.5 kB / 453.7 MB, free: 10.55 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.713e-05/0.5154, allocations: 92.92 kB / 453.8 MB, free: 10.44 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.5155, allocations: 15.98 kB / 453.8 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003852/0.5159, allocations: 23.98 kB / 453.9 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.516, allocations: 27.91 kB / 453.9 MB, free: 10.38 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.5161, allocations: 8 kB / 453.9 MB, free: 10.37 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.5162, allocations: 123.3 kB / 454 MB, free: 10.25 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5163, allocations: 2.156 kB / 454 MB, free: 10.25 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005085/0.5168, allocations: 71.84 kB / 454.1 MB, free: 10.18 MB / 347.1 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.001351/0.5181, allocations: 1.105 MB / 455.2 MB, free: 9.031 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009622/0.5191, allocations: 0.4902 MB / 455.7 MB, free: 8.504 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5191, allocations: 0 / 455.7 MB, free: 8.504 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005988/0.5197, allocations: 358.7 kB / 456 MB, free: 8.129 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009976/0.5208, allocations: 119.2 kB / 456.1 MB, free: 8.016 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.5222, allocations: 438.9 kB / 456.6 MB, free: 7.547 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.5226, allocations: 0.7476 MB / 457.3 MB, free: 6.773 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.5228, allocations: 71.41 kB / 457.4 MB, free: 6.703 MB / 347.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5228, allocations: 0 / 457.4 MB, free: 6.703 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.515/3.038, allocations: 3.933 MB / 461.3 MB, free: 2.812 MB / 347.1 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