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.001633/0.001633, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009524/0.0009523, allocations: 87.78 kB / 292.1 MB, free: 6.062 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.096e-05/4.127e-05, allocations: 4 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3348/0.4416, allocations: 80.26 MB / 482.4 MB, free: 9.184 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002622/0.4419, allocations: 71.53 kB / 482.4 MB, free: 9.148 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01556/0.4575, allocations: 7.361 MB / 489.8 MB, free: 3.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4575, allocations: 4 kB / 489.8 MB, free: 3.121 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.4575, allocations: 4 kB / 489.8 MB, free: 3.117 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.000652/0.4582, allocations: 0.5958 MB / 490.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.4582, allocations: 8.031 kB / 490.4 MB, free: 2.477 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.509e-05/0.4583, allocations: 54.17 kB / 490.5 MB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.4584, allocations: 46.98 kB / 490.5 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.4588, allocations: 255.1 kB / 490.8 MB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.049e-05/0.4588, allocations: 46.58 kB / 490.8 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.4589, allocations: 26.78 kB / 490.8 MB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003272/0.4592, allocations: 227.5 kB / 491.1 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.4592, allocations: 3.938 kB / 491.1 MB, free: 1.879 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.288e-05/0.4593, allocations: 11.56 kB / 491.1 MB, free: 1.871 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.4593, allocations: 4 kB / 491.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002278/0.4595, allocations: 159.1 kB / 491.2 MB, free: 1.758 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.4605, allocations: 0.7599 MB / 492 MB, free: 1.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000296/0.4608, allocations: 262.4 kB / 492.3 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.4611, allocations: 199.6 kB / 492.4 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.4611, allocations: 8 kB / 492.5 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.4614, allocations: 290.1 kB / 492.7 MB, free: 392 kB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.4614, allocations: 0 / 492.7 MB, free: 392 kB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005179/0.4619, allocations: 401.4 kB / 493.1 MB, free: 15.97 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000111/0.4621, allocations: 229.6 kB / 493.4 MB, free: 15.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000167/0.4622, allocations: 170.2 kB / 493.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.4623, allocations: 33.7 kB / 493.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.468e-05/0.4624, allocations: 132.5 kB / 493.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/0.4624, allocations: 78.92 kB / 493.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.4624, allocations: 4 kB / 493.8 MB, free: 15.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4626, allocations: 334.8 kB / 494.1 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.4627, allocations: 92.69 kB / 494.2 MB, free: 14.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.4629, allocations: 164.2 kB / 494.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.4631, allocations: 197.6 kB / 494.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4631, allocations: 2.344 kB / 494.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.000471/0.4636, allocations: 418.7 kB / 494.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-05/0.4637, allocations: 97.05 kB / 495 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.4637, allocations: 8.875 kB / 495 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.4637, allocations: 4 kB / 495.1 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.4639, allocations: 39.91 kB / 495.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.4639, allocations: 0 / 495.1 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000174/0.4641, allocations: 35.83 kB / 495.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.4641, allocations: 16.12 kB / 495.1 MB, free: 13.81 MB / 362.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.0001695/0.4643, allocations: 220.3 kB / 495.4 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.266e-05/0.4643, allocations: 23.81 kB / 495.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.367e-05/0.4644, allocations: 31.59 kB / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.4644, allocations: 0 / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4644, allocations: 1.406 kB / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.4644, allocations: 8 kB / 495.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.4655, allocations: 0.9458 MB / 496.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.4655, allocations: 3.984 kB / 496.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.4656, allocations: 29.42 kB / 496.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.4656, allocations: 8.031 kB / 496.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.4656, allocations: 8 kB / 496.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.4657, allocations: 0 / 496.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4657, allocations: 0 / 496.4 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006164/0.4663, allocations: 0.5626 MB / 497 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.4664, allocations: 100.8 kB / 497.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.4664, allocations: 19.98 kB / 497.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/0.4666, allocations: 19.98 kB / 497.1 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.963e-05/0.4667, allocations: 31.91 kB / 497.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.4668, allocations: 12 kB / 497.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.64e-05/0.4669, allocations: 133.5 kB / 497.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.623e-06/0.4669, allocations: 0 / 497.3 MB, free: 11.53 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003141/0.4672, allocations: 91.72 kB / 497.4 MB, free: 11.44 MB / 362.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.0009597/0.4682, allocations: 1.21 MB / 498.6 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.4687, allocations: 0.5019 MB / 499.1 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.4687, allocations: 0 / 499.1 MB, free: 9.641 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.4691, allocations: 374.7 kB / 499.5 MB, free: 9.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005828/0.4697, allocations: 126.1 kB / 499.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009137/0.4706, allocations: 434.2 kB / 0.4883 GB, free: 8.676 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.4709, allocations: 0.7486 MB / 0.489 GB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.4711, allocations: 51.52 kB / 0.4891 GB, free: 7.855 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.4712, allocations: 67.41 kB / 0.4891 GB, free: 7.789 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4712, allocations: 0 / 0.4891 GB, free: 7.789 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.4886, allocations: 5.87 MB / 0.4949 GB, free: 2.16 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.4888, allocations: 150.9 kB / 0.495 GB, free: 1.941 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.147, allocations: 0 / 0.495 GB, free: 1.941 MB / 362.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