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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00144/0.00144, allocations: 93.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002364/0.002363, allocations: 205.5 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002587, allocations: 4 kB / 306.7 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1341, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002618/0.1368, allocations: 1.949 MB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.138, allocations: 0.6899 MB / 360.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1381, allocations: 4 kB / 360.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.1383, allocations: 19.84 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.1384, allocations: 59.8 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003333/0.1387, allocations: 71.8 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.139, allocations: 163.7 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.1392, allocations: 85.19 kB / 361.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.1394, allocations: 103.7 kB / 361.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001564/0.1396, allocations: 87.61 kB / 361.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.1397, allocations: 12 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.415e-05/0.1397, allocations: 15.94 kB / 361.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.489e-05/0.1398, allocations: 43.83 kB / 361.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.387e-05/0.1399, allocations: 69.56 kB / 361.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1401, allocations: 207.7 kB / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1402, allocations: 0 / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1402, allocations: 0 / 361.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1402, allocations: 4 kB / 361.8 MB, free: 10.19 MB / 302.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.001049/0.1412, allocations: 0.6287 MB / 362.4 MB, free: 9.496 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.1413, allocations: 8.031 kB / 362.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.598e-05/0.1414, allocations: 58.55 kB / 362.4 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.1416, allocations: 43.69 kB / 362.5 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.1419, allocations: 231.3 kB / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.945e-05/0.142, allocations: 49.69 kB / 362.8 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.954e-05/0.1421, allocations: 23.95 kB / 362.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006068/0.1427, allocations: 267.9 kB / 363.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1427, allocations: 0 / 363.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.1427, allocations: 4 kB / 363.1 MB, free: 8.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1427, allocations: 4 kB / 363.1 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004819/0.1432, allocations: 216.3 kB / 363.3 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001361/0.1446, allocations: 0.768 MB / 364 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005697/0.1452, allocations: 307.4 kB / 364.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.732e-05/0.1452, allocations: 0 / 364.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005185/0.1457, allocations: 328.6 kB / 364.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1457, allocations: 0 / 364.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001281/0.147, allocations: 0.762 MB / 365.4 MB, free: 6.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1472, allocations: 203.9 kB / 365.6 MB, free: 5.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.1474, allocations: 179.7 kB / 365.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.843e-05/0.1474, allocations: 41.7 kB / 365.8 MB, free: 5.762 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/0.1475, allocations: 132.7 kB / 366 MB, free: 5.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.379e-05/0.1476, allocations: 75.09 kB / 366 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.1476, allocations: 8 kB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1478, allocations: 338.9 kB / 366.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.148, allocations: 120.6 kB / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002696/0.1483, allocations: 175.3 kB / 366.7 MB, free: 4.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.1486, allocations: 225.7 kB / 366.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-06/0.1486, allocations: 0 / 366.9 MB, free: 4.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006909/0.1493, allocations: 466.5 kB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.988e-05/0.1494, allocations: 93.09 kB / 367.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1494, allocations: 0 / 367.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.1495, allocations: 4 kB / 367.4 MB, free: 4.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.1497, allocations: 43.91 kB / 367.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.1497, allocations: 0 / 367.5 MB, free: 4.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000192/0.1499, allocations: 39.73 kB / 367.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.1499, allocations: 15.98 kB / 367.5 MB, free: 3.961 MB / 302.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.0002656/0.1502, allocations: 243.7 kB / 367.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.463e-05/0.1503, allocations: 27.7 kB / 367.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.66e-05/0.1503, allocations: 22.66 kB / 367.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1503, allocations: 0 / 367.8 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.1503, allocations: 4 kB / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.1504, allocations: 0 / 367.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.1516, allocations: 0.9 MB / 368.7 MB, free: 2.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.1517, allocations: 4 kB / 368.7 MB, free: 2.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.1518, allocations: 27.92 kB / 368.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1518, allocations: 0 / 368.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.1518, allocations: 8 kB / 368.8 MB, free: 2.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1518, allocations: 4 kB / 368.8 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1518, allocations: 4 kB / 368.8 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.1528, allocations: 0.635 MB / 369.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.669e-05/0.1529, allocations: 96.86 kB / 369.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.692e-05/0.153, allocations: 16.17 kB / 369.5 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.1532, allocations: 23.98 kB / 369.5 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.538e-05/0.1534, allocations: 31.91 kB / 369.6 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.1534, allocations: 11.98 kB / 369.6 MB, free: 1.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1535, allocations: 135.2 kB / 369.7 MB, free: 1.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1535, allocations: 3.938 kB / 369.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.1539, allocations: 79.84 kB / 369.8 MB, free: 1.555 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.001406/0.1553, allocations: 1.188 MB / 371 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2287/0.384, allocations: 0.548 MB / 371.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.384, allocations: 3.781 kB / 371.5 MB, free: 19.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007122/0.3847, allocations: 410.1 kB / 371.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000698/0.3855, allocations: 116.5 kB / 372.1 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002784/0.3883, allocations: 2.314 MB / 374.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.3885, allocations: 0.7523 MB / 375.1 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001815/0.3887, allocations: 54.03 kB / 375.2 MB, free: 17.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001264/0.3888, allocations: 71.59 kB / 375.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3889, allocations: 0 / 375.2 MB, free: 17.58 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01811/0.407, allocations: 5.831 MB / 381.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/0.4072, allocations: 178.7 kB / 381.2 MB, free: 16.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.913/2.32, allocations: 1.031 kB / 381.2 MB, free: 16.83 MB / 302.1 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