Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 94.11 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009772/0.0009772, allocations: 181.3 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.58/1.58, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002972/0.0002972, allocations: 6.219 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1343, allocations: 50.42 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002866/0.1372, allocations: 1.93 MB / 353.1 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.1388, allocations: 0.6394 MB / 353.8 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001763/0.139, allocations: 4 kB / 353.8 MB, free: 9.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1391, allocations: 31.81 kB / 353.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001435/0.1393, allocations: 51.83 kB / 353.9 MB, free: 8.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.1396, allocations: 71.78 kB / 353.9 MB, free: 8.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.1399, allocations: 171.6 kB / 354.1 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.1401, allocations: 81.23 kB / 354.2 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.1403, allocations: 87.75 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001532/0.1405, allocations: 95.59 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.455e-05/0.1406, allocations: 15.98 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.296e-05/0.1406, allocations: 11.94 kB / 354.4 MB, free: 8.414 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.697e-05/0.1407, allocations: 39.84 kB / 354.4 MB, free: 8.375 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.625e-05/0.1408, allocations: 65.58 kB / 354.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002309/0.141, allocations: 199.5 kB / 354.7 MB, free: 8.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.141, allocations: 0 / 354.7 MB, free: 8.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.141, allocations: 4 kB / 354.7 MB, free: 8.105 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.141, allocations: 0 / 354.7 MB, free: 8.105 MB / 286.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.0009905/0.142, allocations: 0.6287 MB / 355.3 MB, free: 7.41 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1421, allocations: 12.03 kB / 355.3 MB, free: 7.398 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.202e-05/0.1422, allocations: 54.55 kB / 355.4 MB, free: 7.336 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.11e-05/0.1422, allocations: 35.61 kB / 355.4 MB, free: 7.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003069/0.1426, allocations: 227.4 kB / 355.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.946e-05/0.1427, allocations: 53.64 kB / 355.7 MB, free: 6.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.646e-05/0.1427, allocations: 20 kB / 355.7 MB, free: 6.957 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000594/0.1433, allocations: 256.1 kB / 356 MB, free: 6.703 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1433, allocations: 0 / 356 MB, free: 6.703 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.1434, allocations: 12 kB / 356 MB, free: 6.691 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1434, allocations: 7.953 kB / 356 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005066/0.1439, allocations: 220.1 kB / 356.2 MB, free: 6.469 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.1452, allocations: 0.7681 MB / 357 MB, free: 5.637 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005657/0.1458, allocations: 303.4 kB / 357.3 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.1458, allocations: 4 kB / 357.3 MB, free: 5.328 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005223/0.1464, allocations: 337.2 kB / 357.6 MB, free: 4.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 1.623e-06/0.1464, allocations: 0 / 357.6 MB, free: 4.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001258/0.1476, allocations: 0.7543 MB / 358.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.1478, allocations: 199.9 kB / 358.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000172/0.1479, allocations: 183.1 kB / 358.7 MB, free: 3.738 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.627e-05/0.148, allocations: 37.7 kB / 358.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.82e-05/0.1481, allocations: 136.7 kB / 358.9 MB, free: 3.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.869e-05/0.1482, allocations: 75 kB / 359 MB, free: 3.484 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.1482, allocations: 8 kB / 359 MB, free: 3.477 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.1483, allocations: 338.8 kB / 359.3 MB, free: 3.137 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.1486, allocations: 116.6 kB / 359.4 MB, free: 3.016 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.1489, allocations: 179 kB / 359.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000299/0.1492, allocations: 229.7 kB / 359.8 MB, free: 2.578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.1492, allocations: 0 / 359.8 MB, free: 2.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007034/0.1499, allocations: 457.4 kB / 360.3 MB, free: 2.109 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.149e-05/0.15, allocations: 101 kB / 360.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.15, allocations: 4 kB / 360.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.15, allocations: 4 kB / 360.4 MB, free: 1.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.1502, allocations: 39.91 kB / 360.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1502, allocations: 0 / 360.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.1505, allocations: 47.67 kB / 360.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.345e-05/0.1505, allocations: 8 kB / 360.5 MB, free: 1.891 MB / 286.1 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,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$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.0002547/0.1508, allocations: 235.8 kB / 360.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.769e-05/0.1508, allocations: 31.72 kB / 360.7 MB, free: 1.609 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.1509, allocations: 22.61 kB / 360.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.1509, allocations: 0 / 360.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1509, allocations: 0 / 360.8 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.1509, allocations: 3.984 kB / 360.8 MB, free: 1.578 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/0.1522, allocations: 0.9125 MB / 361.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1522, allocations: 0 / 361.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.1523, allocations: 31.88 kB / 361.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1523, allocations: 0 / 361.7 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/0.1523, allocations: 8 kB / 361.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.1523, allocations: 3.984 kB / 361.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1524, allocations: 7.984 kB / 361.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009302/0.1533, allocations: 0.6196 MB / 362.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.197e-05/0.1534, allocations: 104.7 kB / 362.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.598e-05/0.1534, allocations: 24.12 kB / 362.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000219/0.1537, allocations: 19.98 kB / 362.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/0.1538, allocations: 31.89 kB / 362.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.1538, allocations: 12 kB / 362.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001203/0.1539, allocations: 135.2 kB / 362.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.904e-06/0.1539, allocations: 0 / 362.7 MB, free: 15.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003585/0.1543, allocations: 75.84 kB / 362.7 MB, free: 15.48 MB / 302.1 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.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,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.00131/0.1556, allocations: 1.186 MB / 363.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.1566, allocations: 0.5527 MB / 364.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.1566, allocations: 0 / 364.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005701/0.1572, allocations: 418.5 kB / 364.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/0.1578, allocations: 130.9 kB / 365 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.1607, allocations: 2.316 MB / 367.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.161, allocations: 0.7487 MB / 368.1 MB, free: 9.949 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001685/0.1612, allocations: 57.88 kB / 368.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.1613, allocations: 67.41 kB / 368.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1613, allocations: 0 / 368.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01774/0.1791, allocations: 5.821 MB / 374 MB, free: 4.191 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002064/0.1794, allocations: 181 kB / 374.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.974/2.154, allocations: 0 / 374.2 MB, free: 3.957 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat