Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.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.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Modulation",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.001088/0.001088, allocations: 94.56 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.001008/0.001008, allocations: 184 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.455/1.455, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003023/0.0003026, allocations: 6.781 kB / 300.8 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1422, allocations: 50.43 MB / 351.2 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002592/0.1449, allocations: 1.614 MB / 352.8 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1462, allocations: 0.5263 MB / 353.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.1464, allocations: 7.938 kB / 353.4 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.359e-05/0.1465, allocations: 11.86 kB / 353.4 MB, free: 9.402 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.1467, allocations: 63.77 kB / 353.4 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.147, allocations: 43.94 kB / 353.5 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003522/0.1474, allocations: 131.7 kB / 353.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.1476, allocations: 68.09 kB / 353.7 MB, free: 9.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.1478, allocations: 55.7 kB / 353.7 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.1479, allocations: 63.58 kB / 353.8 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.323e-05/0.148, allocations: 4 kB / 353.8 MB, free: 8.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.253e-05/0.148, allocations: 4 kB / 353.8 MB, free: 8.969 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.148, allocations: 23.91 kB / 353.8 MB, free: 8.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.1481, allocations: 53.58 kB / 353.9 MB, free: 8.887 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.1483, allocations: 111.7 kB / 354 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1483, allocations: 0 / 354 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1483, allocations: 4 kB / 354 MB, free: 8.773 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.1483, allocations: 0 / 354 MB, free: 8.773 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007882/0.1491, allocations: 466.4 kB / 354.5 MB, free: 8.27 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.1492, allocations: 8.031 kB / 354.5 MB, free: 8.262 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.411e-05/0.1492, allocations: 50.5 kB / 354.5 MB, free: 8.203 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.103e-05/0.1493, allocations: 23.72 kB / 354.5 MB, free: 8.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003077/0.1496, allocations: 222.7 kB / 354.7 MB, free: 7.922 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.1496, allocations: 12 kB / 354.8 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.537e-05/0.1497, allocations: 12 kB / 354.8 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003567/0.15, allocations: 168.6 kB / 354.9 MB, free: 7.719 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.1501, allocations: 3.938 kB / 354.9 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.1501, allocations: 4 kB / 354.9 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1501, allocations: 7.953 kB / 355 MB, free: 7.703 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002455/0.1504, allocations: 103.9 kB / 355.1 MB, free: 7.602 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.1516, allocations: 0.6371 MB / 355.7 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.1519, allocations: 135.8 kB / 355.8 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.673e-05/0.152, allocations: 16.05 kB / 355.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.076e-05/0.152, allocations: 30.56 kB / 355.9 MB, free: 6.691 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 4.017e-06/0.152, allocations: 3.984 kB / 355.9 MB, free: 6.688 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006031/0.1526, allocations: 193.4 kB / 356.1 MB, free: 6.492 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/0.1528, allocations: 106.8 kB / 356.2 MB, free: 6.363 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.1531, allocations: 233 kB / 356.4 MB, free: 6.129 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.1531, allocations: 25.7 kB / 356.4 MB, free: 6.098 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.1532, allocations: 136 kB / 356.6 MB, free: 5.961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.69e-05/0.1533, allocations: 51.3 kB / 356.6 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/0.1533, allocations: 4.031 kB / 356.6 MB, free: 5.906 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1535, allocations: 330.8 kB / 356.9 MB, free: 5.574 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.1536, allocations: 39.97 kB / 357 MB, free: 5.535 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.1538, allocations: 102.8 kB / 357.1 MB, free: 5.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.1539, allocations: 51.97 kB / 357.1 MB, free: 5.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1539, allocations: 4 kB / 357.1 MB, free: 5.355 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003515/0.1543, allocations: 185.7 kB / 357.3 MB, free: 5.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.1543, allocations: 8 kB / 357.3 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.1543, allocations: 0 / 357.3 MB, free: 5.16 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.1543, allocations: 8.188 kB / 357.3 MB, free: 5.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.1545, allocations: 39.97 kB / 357.4 MB, free: 5.113 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1545, allocations: 7.953 kB / 357.4 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001165/0.1546, allocations: 27.83 kB / 357.4 MB, free: 5.078 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1547, allocations: 4 kB / 357.4 MB, free: 5.074 MB / 286.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.0001509/0.1548, allocations: 129.8 kB / 357.5 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.1549, allocations: 23.72 kB / 357.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004921/0.1554, allocations: 194.8 kB / 357.7 MB, free: 4.719 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.1554, allocations: 4 kB / 357.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.1554, allocations: 0 / 357.7 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.1554, allocations: 3.953 kB / 357.7 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005119/0.156, allocations: 277.4 kB / 358 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.156, allocations: 0 / 358 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1562, allocations: 35.92 kB / 358.1 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1562, allocations: 0 / 358.1 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.1562, allocations: 11.98 kB / 358.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.1562, allocations: 0 / 358.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1562, allocations: 0 / 358.1 MB, free: 4.344 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005852/0.1568, allocations: 0.4994 MB / 358.6 MB, free: 3.816 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.948e-05/0.1569, allocations: 100.8 kB / 358.7 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.1569, allocations: 11.94 kB / 358.7 MB, free: 3.688 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.1571, allocations: 15.94 kB / 358.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.799e-05/0.1572, allocations: 11.98 kB / 358.7 MB, free: 3.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.769e-06/0.1572, allocations: 4 kB / 358.7 MB, free: 3.656 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.1574, allocations: 168.5 kB / 358.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1574, allocations: 0 / 358.9 MB, free: 3.496 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000332/0.1577, allocations: 32 kB / 358.9 MB, free: 3.465 MB / 286.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.0009296/0.1586, allocations: 1.176 MB / 360.1 MB, free: 2.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003047/0.159, allocations: 128.1 kB / 360.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.159, allocations: 0 / 360.2 MB, free: 2.125 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.1591, allocations: 67.84 kB / 360.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002672/0.1594, allocations: 14.62 kB / 360.3 MB, free: 2.043 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/0.1624, allocations: 2.573 MB / 362.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.1629, allocations: 0.7516 MB / 363.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.22e-05/0.163, allocations: 25.52 kB / 363.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001107/0.1631, allocations: 71.41 kB / 363.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1631, allocations: 0 / 363.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01468/0.1778, allocations: 3.311 MB / 367 MB, free: 11.31 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.1781, allocations: 168.5 kB / 367.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.809/1.987, allocations: 4 kB / 367.2 MB, free: 11.06 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat does not exist to compare? outputFormat=mat