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.0009503/0.00095, allocations: 97.2 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009541/0.0009542, allocations: 193.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.593/1.593, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002685, allocations: 8 kB / 306.8 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1325, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002659/0.1352, allocations: 2.011 MB / 360.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1365, allocations: 0.6744 MB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1366, allocations: 0 / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001245/0.1368, allocations: 27.78 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.865e-05/0.1369, allocations: 51.56 kB / 361.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.1372, allocations: 67.86 kB / 361.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.1375, allocations: 231.1 kB / 361.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.1377, allocations: 93.19 kB / 361.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002405/0.138, allocations: 99.61 kB / 361.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001568/0.1381, allocations: 91.61 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.257e-05/0.1382, allocations: 12 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.826e-05/0.1382, allocations: 16 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.251e-05/0.1383, allocations: 39.83 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.47e-05/0.1384, allocations: 65.58 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.1386, allocations: 203.7 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1386, allocations: 0 / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1386, allocations: 0 / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.1387, allocations: 0 / 362 MB, free: 10.07 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.0009699/0.1396, allocations: 0.6403 MB / 362.6 MB, free: 9.359 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.1397, allocations: 8.031 kB / 362.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.732e-05/0.1398, allocations: 54.55 kB / 362.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001721/0.1399, allocations: 39.7 kB / 362.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002862/0.1402, allocations: 235.4 kB / 362.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/0.1403, allocations: 49.69 kB / 363 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.68e-05/0.1404, allocations: 23.95 kB / 363 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005801/0.1409, allocations: 259.9 kB / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.141, allocations: 0 / 363.3 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.141, allocations: 16 kB / 363.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.141, allocations: 4 kB / 363.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004956/0.1415, allocations: 212.3 kB / 363.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.1429, allocations: 0.7641 MB / 364.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.1435, allocations: 314.8 kB / 364.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000426/0.1439, allocations: 240.4 kB / 364.8 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.144, allocations: 3.984 kB / 364.8 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005213/0.1445, allocations: 317.5 kB / 365.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 2.044e-06/0.1445, allocations: 0 / 365.1 MB, free: 6.688 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001201/0.1457, allocations: 0.5997 MB / 365.7 MB, free: 6.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.1459, allocations: 207.9 kB / 365.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.146, allocations: 182 kB / 366.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.1461, allocations: 37.7 kB / 366.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.1462, allocations: 140.7 kB / 366.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.852e-05/0.1463, allocations: 71.09 kB / 366.3 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.638e-05/0.1463, allocations: 8 kB / 366.3 MB, free: 5.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1464, allocations: 338.9 kB / 366.7 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.1467, allocations: 112.6 kB / 366.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002747/0.147, allocations: 179.3 kB / 367 MB, free: 4.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003089/0.1473, allocations: 221.8 kB / 367.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1473, allocations: 0 / 367.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007078/0.148, allocations: 458.1 kB / 367.6 MB, free: 4.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-05/0.1481, allocations: 97.09 kB / 367.7 MB, free: 3.902 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.1481, allocations: 4 kB / 367.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1481, allocations: 0 / 367.7 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.1483, allocations: 39.92 kB / 367.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.1484, allocations: 7.984 kB / 367.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.1486, allocations: 39.81 kB / 367.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.59e-05/0.1486, allocations: 15.98 kB / 367.8 MB, free: 3.797 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.0002487/0.1488, allocations: 232.8 kB / 368.1 MB, free: 3.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.035e-05/0.1489, allocations: 27.72 kB / 368.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.149, allocations: 30.64 kB / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.149, allocations: 0 / 368.1 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.149, allocations: 4 kB / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.149, allocations: 0 / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.1505, allocations: 0.9512 MB / 369.1 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.1505, allocations: 4.031 kB / 369.1 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1506, allocations: 23.92 kB / 369.1 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.1506, allocations: 4 kB / 369.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.793e-05/0.1506, allocations: 11.98 kB / 369.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1506, allocations: 3.953 kB / 369.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1507, allocations: 4 kB / 369.1 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009608/0.1516, allocations: 0.6253 MB / 369.7 MB, free: 1.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.827e-05/0.1517, allocations: 100.8 kB / 369.8 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.172e-05/0.1518, allocations: 20 kB / 369.9 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.152, allocations: 27.92 kB / 369.9 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.1521, allocations: 23.97 kB / 369.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.1521, allocations: 15.98 kB / 369.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001136/0.1523, allocations: 131.2 kB / 370.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1523, allocations: 4 kB / 370.1 MB, free: 1.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.1526, allocations: 75.84 kB / 370.1 MB, free: 1.348 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.001332/0.154, allocations: 1.196 MB / 371.3 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2041/0.3581, allocations: 0.5423 MB / 371.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/0.3582, allocations: 8.031 kB / 371.9 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007119/0.3589, allocations: 407.9 kB / 372.3 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008734/0.3598, allocations: 119.6 kB / 372.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003091/0.3629, allocations: 1.581 MB / 374 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.3631, allocations: 0.7501 MB / 374.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.3633, allocations: 51.66 kB / 374.8 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.3635, allocations: 65.94 kB / 374.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3635, allocations: 1 kB / 374.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.3831, allocations: 5.862 MB / 380.7 MB, free: 17.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.3833, allocations: 191 kB / 380.9 MB, free: 17.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.42, allocations: 0 / 380.9 MB, free: 17.48 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