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.001499/0.001499, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007841/0.000784, allocations: 86.7 kB / 262.4 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.892e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07466/0.0747, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2946/0.3693, allocations: 77.66 MB / 440.8 MB, free: 1.727 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.3696, allocations: 68.91 kB / 440.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01724/0.3868, allocations: 7.055 MB / 447.9 MB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3869, allocations: 0 / 447.9 MB, free: 12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.3869, allocations: 8 kB / 448 MB, free: 11.99 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.0008003/0.3877, allocations: 0.5957 MB / 448.6 MB, free: 11.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.3878, allocations: 8.031 kB / 448.6 MB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.322e-05/0.3878, allocations: 31.62 kB / 448.6 MB, free: 11.31 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003765/0.3882, allocations: 249.7 kB / 448.8 MB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.601e-05/0.3883, allocations: 48.75 kB / 448.9 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.615e-05/0.3884, allocations: 12 kB / 448.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000264/0.3886, allocations: 155 kB / 449 MB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003222/0.389, allocations: 205.3 kB / 449.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.389, allocations: 0 / 449.2 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.389, allocations: 4 kB / 449.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.389, allocations: 4 kB / 449.3 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001186/0.3902, allocations: 0.7161 MB / 450 MB, free: 10.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.3905, allocations: 248.1 kB / 450.2 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002337/0.3908, allocations: 195.9 kB / 450.4 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.3908, allocations: 0 / 450.4 MB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003718/0.3912, allocations: 291.6 kB / 450.7 MB, free: 9.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.543e-06/0.3912, allocations: 3.938 kB / 450.7 MB, free: 9.477 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005218/0.3917, allocations: 314.5 kB / 451 MB, free: 9.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.3919, allocations: 236.8 kB / 451.2 MB, free: 8.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.392, allocations: 153 kB / 451.4 MB, free: 8.82 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.3921, allocations: 37.06 kB / 451.4 MB, free: 8.781 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.387e-05/0.3921, allocations: 129.3 kB / 451.5 MB, free: 8.668 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.061e-05/0.3922, allocations: 69.83 kB / 451.6 MB, free: 8.609 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.4e-05/0.3922, allocations: 4 kB / 451.6 MB, free: 8.605 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3924, allocations: 333.6 kB / 451.9 MB, free: 8.281 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.3925, allocations: 88.41 kB / 452 MB, free: 8.215 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3927, allocations: 153.8 kB / 452.2 MB, free: 8.078 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/0.3929, allocations: 100.9 kB / 452.3 MB, free: 8.008 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3929, allocations: 4.031 kB / 452.3 MB, free: 8.004 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004154/0.3933, allocations: 314 kB / 452.6 MB, free: 7.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.31e-05/0.3934, allocations: 93.09 kB / 452.7 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.3934, allocations: 4 kB / 452.7 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.3934, allocations: 0 / 452.7 MB, free: 7.637 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.3936, allocations: 43.41 kB / 452.7 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.275e-06/0.3936, allocations: 7.953 kB / 452.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.3938, allocations: 24.11 kB / 452.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.342e-05/0.3939, allocations: 15.44 kB / 452.8 MB, free: 7.555 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.0002043/0.3941, allocations: 199.1 kB / 453 MB, free: 7.344 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004909/0.3946, allocations: 350 kB / 453.3 MB, free: 7.074 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.259e-05/0.3947, allocations: 27.8 kB / 453.3 MB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.267e-05/0.3947, allocations: 26.02 kB / 453.4 MB, free: 7.035 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.3947, allocations: 4 kB / 453.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3947, allocations: 0 / 453.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3947, allocations: 0 / 453.4 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009131/0.3957, allocations: 0.8054 MB / 454.2 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3957, allocations: 0 / 454.2 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.3958, allocations: 19.98 kB / 454.2 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.698e-06/0.3958, allocations: 3.984 kB / 454.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.967e-05/0.3958, allocations: 19.09 kB / 454.2 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3959, allocations: 0 / 454.2 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3959, allocations: 0 / 454.2 MB, free: 6.273 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005383/0.3964, allocations: 475.2 kB / 454.7 MB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.105e-05/0.3965, allocations: 92.91 kB / 454.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.3966, allocations: 11.94 kB / 454.8 MB, free: 5.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.3968, allocations: 27.97 kB / 454.8 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.3969, allocations: 27.42 kB / 454.8 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/0.3969, allocations: 19.11 kB / 454.8 MB, free: 5.684 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.521e-05/0.397, allocations: 117.8 kB / 455 MB, free: 5.582 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.397, allocations: 0 / 455 MB, free: 5.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003539/0.3974, allocations: 67.84 kB / 455 MB, free: 5.516 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.0009306/0.3983, allocations: 1.105 MB / 456.1 MB, free: 4.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005383/0.3989, allocations: 487.8 kB / 456.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3989, allocations: 0 / 456.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00034/0.3992, allocations: 371.6 kB / 457 MB, free: 3.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006366/0.3999, allocations: 120.3 kB / 457.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008768/0.4008, allocations: 404.1 kB / 457.5 MB, free: 3.281 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003274/0.4011, allocations: 0.7525 MB / 458.2 MB, free: 2.5 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000153/0.4013, allocations: 54 kB / 458.3 MB, free: 2.449 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.874e-05/0.4014, allocations: 68.91 kB / 458.4 MB, free: 2.422 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4014, allocations: 0 / 458.4 MB, free: 2.422 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.4257, allocations: 5.407 MB / 463.8 MB, free: 13.01 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/0.426, allocations: 137.4 kB / 463.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.125, allocations: 3.938 kB / 463.9 MB, free: 12.82 MB / 346.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