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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009343/0.0009342, allocations: 97.39 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002726/0.0002726, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2561, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09691/0.353, allocations: 76.87 MB / 478.4 MB, free: 3.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.3533, allocations: 67.97 kB / 478.5 MB, free: 3.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008294/0.3616, allocations: 2.894 MB / 481.4 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3617, allocations: 0 / 481.4 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.752e-05/0.3617, allocations: 8 kB / 481.4 MB, free: 0.6406 MB / 346.7 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.0005996/0.3623, allocations: 478.4 kB / 481.9 MB, free: 128 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3624, allocations: 12.03 kB / 481.9 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.367e-05/0.3624, allocations: 50.48 kB / 481.9 MB, free: 56 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.3625, allocations: 27.67 kB / 482 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.3628, allocations: 230.6 kB / 482.2 MB, free: 15.76 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.3628, allocations: 11.98 kB / 482.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.613e-05/0.3628, allocations: 20 kB / 482.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003108/0.3632, allocations: 164.6 kB / 482.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3632, allocations: 0 / 482.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.3632, allocations: 8 kB / 482.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3632, allocations: 4 kB / 482.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.3634, allocations: 95.83 kB / 482.5 MB, free: 15.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009992/0.3644, allocations: 0.6605 MB / 483.1 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.3647, allocations: 131.8 kB / 483.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.857e-05/0.3647, allocations: 0 / 483.3 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3648, allocations: 42.69 kB / 483.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.032e-06/0.3648, allocations: 0 / 483.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005153/0.3653, allocations: 189.3 kB / 483.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.3654, allocations: 110.8 kB / 483.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.3656, allocations: 208.1 kB / 483.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.859e-05/0.3656, allocations: 29.7 kB / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.133e-05/0.3657, allocations: 132 kB / 484 MB, free: 13.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.3657, allocations: 47.28 kB / 484 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.3658, allocations: 4 kB / 484 MB, free: 13.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.3659, allocations: 330.8 kB / 484.3 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.366, allocations: 51.97 kB / 484.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.3661, allocations: 93.97 kB / 484.5 MB, free: 13.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.3663, allocations: 59.92 kB / 484.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.3663, allocations: 0 / 484.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003326/0.3666, allocations: 189.2 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3667, allocations: 8 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.3667, allocations: 0 / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3667, allocations: 4 kB / 484.7 MB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.3669, allocations: 36.53 kB / 484.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.3669, allocations: 4.188 kB / 484.8 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.367, allocations: 23.84 kB / 484.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.367, allocations: 15.88 kB / 484.8 MB, free: 12.93 MB / 362.7 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.0001031/0.3671, allocations: 128.8 kB / 484.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.124e-05/0.3672, allocations: 23.72 kB / 485 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003804/0.3676, allocations: 190.8 kB / 485.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.383e-06/0.3676, allocations: 8 kB / 485.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.3676, allocations: 0 / 485.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.3676, allocations: 3.984 kB / 485.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004448/0.3681, allocations: 281.3 kB / 485.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3681, allocations: 3.938 kB / 485.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.3683, allocations: 35.97 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.3683, allocations: 8 kB / 485.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.3683, allocations: 4 kB / 485.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3683, allocations: 4 kB / 485.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3683, allocations: 0 / 485.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005739/0.3689, allocations: 0.4935 MB / 486 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.369, allocations: 96.91 kB / 486.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.369, allocations: 4.062 kB / 486.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/0.3692, allocations: 8 kB / 486.1 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.432e-05/0.3693, allocations: 23.92 kB / 486.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.3693, allocations: 4 kB / 486.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001372/0.3695, allocations: 172.5 kB / 486.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3695, allocations: 0 / 486.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003383/0.3698, allocations: 39.84 kB / 486.3 MB, free: 11.3 MB / 362.7 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.0008492/0.3707, allocations: 1.187 MB / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000285/0.371, allocations: 119.9 kB / 487.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.371, allocations: 0 / 487.6 MB, free: 9.965 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001319/0.3711, allocations: 68.28 kB / 487.7 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002389/0.3714, allocations: 12.44 kB / 487.7 MB, free: 9.887 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002502/0.3739, allocations: 2.583 MB / 490.3 MB, free: 7.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.3742, allocations: 0.74 MB / 491 MB, free: 6.449 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.473e-05/0.3743, allocations: 29.52 kB / 491.1 MB, free: 6.418 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.813e-05/0.3744, allocations: 67.41 kB / 491.1 MB, free: 6.352 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.3744, allocations: 4 kB / 491.1 MB, free: 6.348 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.3879, allocations: 3.322 MB / 494.5 MB, free: 3.133 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001605/0.3881, allocations: 158.3 kB / 494.6 MB, free: 2.898 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/2.147, allocations: 3.938 kB / 494.6 MB, free: 2.895 MB / 362.7 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