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.001183/0.001183, allocations: 83.55 kB / 16.31 MB, free: 6.449 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.001568/0.001568, allocations: 184.2 kB / 17.21 MB, free: 6.316 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.52/1.52, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004061/0.0004063, allocations: 8.641 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1405, allocations: 50.43 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003326/0.1439, allocations: 1.988 MB / 353.3 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.1455, allocations: 0.6276 MB / 354 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001587/0.1456, allocations: 7.938 kB / 354 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.1458, allocations: 19.84 kB / 354 MB, free: 8.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.146, allocations: 51.61 kB / 354 MB, free: 8.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.1464, allocations: 63.88 kB / 354.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000348/0.1468, allocations: 235 kB / 354.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002964/0.1471, allocations: 81.25 kB / 354.4 MB, free: 8.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002448/0.1473, allocations: 99.67 kB / 354.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002038/0.1476, allocations: 87.61 kB / 354.6 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.414e-05/0.1476, allocations: 12 kB / 354.6 MB, free: 8.305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.117e-05/0.1477, allocations: 12 kB / 354.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/0.1478, allocations: 39.83 kB / 354.6 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1479, allocations: 65.58 kB / 354.7 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003014/0.1482, allocations: 191.5 kB / 354.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.045e-05/0.1482, allocations: 4 kB / 354.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.608e-06/0.1482, allocations: 0 / 354.9 MB, free: 7.992 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1482, allocations: 3.938 kB / 354.9 MB, free: 7.988 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.001316/0.1496, allocations: 0.6427 MB / 355.6 MB, free: 7.281 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.1496, allocations: 8.031 kB / 355.6 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.914e-05/0.1497, allocations: 54.55 kB / 355.6 MB, free: 7.211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.93e-05/0.1498, allocations: 35.61 kB / 355.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.1502, allocations: 223.4 kB / 355.9 MB, free: 6.914 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.459e-05/0.1503, allocations: 57.69 kB / 355.9 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.1504, allocations: 16 kB / 355.9 MB, free: 6.836 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007799/0.1512, allocations: 260.2 kB / 356.2 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.1512, allocations: 3.984 kB / 356.2 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.1512, allocations: 8 kB / 356.2 MB, free: 6.566 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.1513, allocations: 11.95 kB / 356.2 MB, free: 6.555 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006507/0.1519, allocations: 212.1 kB / 356.4 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.1536, allocations: 0.7758 MB / 357.2 MB, free: 5.508 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007481/0.1544, allocations: 315.3 kB / 357.5 MB, free: 5.191 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005519/0.1549, allocations: 234.8 kB / 357.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.155, allocations: 8.125 kB / 357.7 MB, free: 4.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006321/0.1556, allocations: 321.5 kB / 358.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.1556, allocations: 0 / 358.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=31): time 0.001499/0.1571, allocations: 0.592 MB / 358.6 MB, free: 4 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/0.1573, allocations: 199.9 kB / 358.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.1575, allocations: 178.3 kB / 359 MB, free: 3.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.1576, allocations: 41.69 kB / 359.1 MB, free: 3.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.1577, allocations: 136.7 kB / 359.2 MB, free: 3.395 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.378e-05/0.1578, allocations: 82.98 kB / 359.3 MB, free: 3.312 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.1578, allocations: 4 kB / 359.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.158, allocations: 334.8 kB / 359.6 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.1583, allocations: 108.6 kB / 359.7 MB, free: 2.859 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003764/0.1587, allocations: 195 kB / 359.9 MB, free: 2.648 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.1591, allocations: 211.9 kB / 360.1 MB, free: 2.426 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1591, allocations: 0 / 360.1 MB, free: 2.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009095/0.16, allocations: 466.2 kB / 360.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.1601, allocations: 93.09 kB / 360.7 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1601, allocations: 0 / 360.7 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.1602, allocations: 4 kB / 360.7 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00025/0.1604, allocations: 43.92 kB / 360.7 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.1605, allocations: 4 kB / 360.7 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000246/0.1607, allocations: 47.64 kB / 360.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.1608, allocations: 16 kB / 360.8 MB, free: 1.723 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.0002803/0.161, allocations: 237.6 kB / 361 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.474e-05/0.1611, allocations: 27.67 kB / 361 MB, free: 1.445 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.1612, allocations: 30.64 kB / 361.1 MB, free: 1.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.1612, allocations: 7.984 kB / 361.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.1612, allocations: 0 / 361.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1612, allocations: 0 / 361.1 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.163, allocations: 0.9396 MB / 362 MB, free: 400 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.163, allocations: 4.031 kB / 362 MB, free: 396 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/0.1632, allocations: 19.98 kB / 362 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.053e-06/0.1632, allocations: 0 / 362 MB, free: 376 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.618e-05/0.1632, allocations: 19.92 kB / 362 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1633, allocations: 0 / 362 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1633, allocations: 0 / 362 MB, free: 356 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.1645, allocations: 0.6282 MB / 362.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.165e-05/0.1646, allocations: 104.8 kB / 362.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.665e-05/0.1647, allocations: 12 kB / 362.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/0.165, allocations: 27.97 kB / 362.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/0.1651, allocations: 19.97 kB / 362.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.1651, allocations: 15.98 kB / 362.8 MB, free: 15.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.1653, allocations: 135.2 kB / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1653, allocations: 0 / 363 MB, free: 15.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005483/0.1658, allocations: 79.91 kB / 363.1 MB, free: 15.28 MB / 302.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.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.001636/0.1675, allocations: 1.185 MB / 364.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.1686, allocations: 0.5487 MB / 364.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1686, allocations: 8.594 kB / 364.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006539/0.1693, allocations: 410.6 kB / 365.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00094/0.1702, allocations: 136.9 kB / 365.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003336/0.1736, allocations: 1.574 MB / 366.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1739, allocations: 0.7486 MB / 367.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002216/0.1742, allocations: 49.89 kB / 367.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001543/0.1743, allocations: 67.41 kB / 367.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1744, allocations: 0 / 367.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.1958, allocations: 5.857 MB / 373.6 MB, free: 4.707 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002476/0.1961, allocations: 191.1 kB / 373.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/2.167, allocations: 0 / 373.8 MB, free: 4.465 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