Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Modulation.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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001062/0.001063, allocations: 94.97 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001409, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 10.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002502, allocations: 11.98 kB / 306.8 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1338, allocations: 51.49 MB / 358.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002259/0.1362, allocations: 1.644 MB / 359.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009359/0.1371, allocations: 0.5652 MB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.944e-05/0.1372, allocations: 0 / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.1373, allocations: 35.66 kB / 360.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.303e-05/0.1374, allocations: 31.72 kB / 360.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001959/0.1376, allocations: 47.94 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.1378, allocations: 175.3 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.138, allocations: 56.28 kB / 360.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1381, allocations: 63.72 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.1382, allocations: 59.64 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.1383, allocations: 4 kB / 361 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.573e-05/0.1383, allocations: 8 kB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.844e-05/0.1384, allocations: 31.83 kB / 361 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.144e-05/0.1384, allocations: 53.58 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001457/0.1385, allocations: 112 kB / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1386, allocations: 0 / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.916e-06/0.1386, allocations: 0 / 361.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.1386, allocations: 3.938 kB / 361.2 MB, free: 10.86 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006095/0.1392, allocations: 478.4 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.1392, allocations: 12.03 kB / 361.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.226e-05/0.1393, allocations: 46.55 kB / 361.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002161/0.1395, allocations: 47.7 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1398, allocations: 218.7 kB / 362 MB, free: 9.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.1398, allocations: 8 kB / 362 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1398, allocations: 23.94 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002813/0.1401, allocations: 160.1 kB / 362.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1401, allocations: 3.984 kB / 362.1 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.1401, allocations: 8 kB / 362.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.1402, allocations: 8 kB / 362.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.1404, allocations: 95.94 kB / 362.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008697/0.1413, allocations: 0.6411 MB / 362.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002333/0.1415, allocations: 131.8 kB / 363 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.1416, allocations: 58.67 kB / 363.1 MB, free: 8.734 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1417, allocations: 4 kB / 363.1 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.1417, allocations: 42.5 kB / 363.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.1417, allocations: 0 / 363.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004835/0.1422, allocations: 189.3 kB / 363.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.1423, allocations: 106.9 kB / 363.4 MB, free: 8.359 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002338/0.1425, allocations: 229 kB / 363.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.203e-05/0.1425, allocations: 29.7 kB / 363.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.931e-05/0.1426, allocations: 136 kB / 363.8 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.764e-05/0.1427, allocations: 47.34 kB / 363.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.087e-06/0.1427, allocations: 4 kB / 363.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1429, allocations: 330.8 kB / 364.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001029/0.143, allocations: 43.98 kB / 364.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.1431, allocations: 98.78 kB / 364.3 MB, free: 7.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.1432, allocations: 55.97 kB / 364.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1433, allocations: 4 kB / 364.4 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003278/0.1436, allocations: 189.2 kB / 364.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.454e-05/0.1436, allocations: 11.94 kB / 364.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.1436, allocations: 0 / 364.6 MB, free: 7.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.1437, allocations: 4 kB / 364.6 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1438, allocations: 43.84 kB / 364.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1438, allocations: 4 kB / 364.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.1439, allocations: 27.95 kB / 364.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.144, allocations: 4 kB / 364.7 MB, free: 7.066 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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.0001088/0.1441, allocations: 126.3 kB / 364.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.721e-05/0.1442, allocations: 31.67 kB / 364.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.1446, allocations: 194.8 kB / 365 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.1446, allocations: 4 kB / 365 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.1446, allocations: 0.5625 kB / 365 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1446, allocations: 0 / 365 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004615/0.1451, allocations: 273.4 kB / 365.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.1451, allocations: 0 / 365.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.1453, allocations: 35.98 kB / 365.3 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.1453, allocations: 3.938 kB / 365.3 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.1453, allocations: 15.94 kB / 365.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1453, allocations: 4.078 kB / 365.3 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.1453, allocations: 8.078 kB / 365.3 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005645/0.1459, allocations: 481.6 kB / 365.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.549e-05/0.146, allocations: 96.89 kB / 365.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.146, allocations: 4 kB / 365.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001846/0.1462, allocations: 15.94 kB / 365.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.1463, allocations: 15.92 kB / 365.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1463, allocations: 8 kB / 365.9 MB, free: 5.676 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001483/0.1464, allocations: 168.5 kB / 366.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1464, allocations: 0 / 366.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003326/0.1468, allocations: 32 kB / 366.1 MB, free: 5.48 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (sine.phi,sinAM.phi,cosAM.phi,sinFM.phi,cosFM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0008377/0.1476, allocations: 1.014 MB / 367.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002952/0.1479, allocations: 120 kB / 367.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1479, allocations: 0 / 367.3 MB, free: 4.324 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.1481, allocations: 71.84 kB / 367.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.1485, allocations: 19.77 kB / 367.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.1509, allocations: 1.544 MB / 368.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1512, allocations: 0.74 MB / 369.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.382e-05/0.1513, allocations: 21.53 kB / 369.7 MB, free: 1.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.1515, allocations: 79.33 kB / 369.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1515, allocations: 0 / 369.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2427/0.3941, allocations: 3.335 MB / 373.1 MB, free: 18.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001691/0.3943, allocations: 164.7 kB / 373.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.324, allocations: 3 kB / 373.2 MB, free: 18.12 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat does not exist to compare? outputFormat=mat