Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_4_1_0-beta_om_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.001339/0.001339, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 198 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 227.7 MB / 247.2 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002128/0.002128, allocations: 63.91 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3205, allocations: 50.54 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003903/0.3245, allocations: 2.012 MB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.3259, allocations: 0.6465 MB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002356/0.3262, allocations: 4 kB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.3264, allocations: 39.55 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.3266, allocations: 35.59 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.3269, allocations: 87.83 kB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003526/0.3273, allocations: 207.2 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.3275, allocations: 78.28 kB / 412.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.3277, allocations: 75.7 kB / 412.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.3278, allocations: 83.5 kB / 412.3 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.069e-05/0.3279, allocations: 12 kB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.19e-05/0.3279, allocations: 16 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.328, allocations: 43.78 kB / 412.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.372e-05/0.3281, allocations: 83.47 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.3284, allocations: 178.2 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3284, allocations: 4 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3284, allocations: 0 / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.3284, allocations: 0 / 412.6 MB, free: 13.73 MB / 334.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.0007689/0.3292, allocations: 0.4944 MB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3292, allocations: 15.97 kB / 413.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.389e-05/0.3293, allocations: 46.73 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002453/0.3295, allocations: 36.78 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.3299, allocations: 252 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.33, allocations: 12.31 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.375e-05/0.33, allocations: 20.34 kB / 413.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.3303, allocations: 164.2 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.3304, allocations: 4 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.3304, allocations: 4 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.3304, allocations: 4 kB / 413.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.3307, allocations: 95.88 kB / 413.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009709/0.3317, allocations: 0.6334 MB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.332, allocations: 131.8 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.3321, allocations: 58.67 kB / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.3321, allocations: 0 / 414.6 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.3322, allocations: 42.56 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.072e-06/0.3322, allocations: 0 / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005096/0.3327, allocations: 173.8 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.798e-05/0.3328, allocations: 114.8 kB / 414.9 MB, free: 11.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.333, allocations: 234.6 kB / 415.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.3331, allocations: 33.83 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3332, allocations: 136 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.41e-05/0.3333, allocations: 47.59 kB / 415.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.3333, allocations: 37.64 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.3335, allocations: 334.8 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.3336, allocations: 39.97 kB / 415.8 MB, free: 10.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3338, allocations: 94.28 kB / 415.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.3341, allocations: 146.7 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3341, allocations: 7.938 kB / 416 MB, free: 10.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000355/0.3344, allocations: 177.3 kB / 416.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3345, allocations: 4.188 kB / 416.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.3345, allocations: 8 kB / 416.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.3345, allocations: 0 / 416.2 MB, free: 9.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3347, allocations: 35.97 kB / 416.2 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.3347, allocations: 7.938 kB / 416.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.3348, allocations: 23.81 kB / 416.3 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.3348, allocations: 8 kB / 416.3 MB, free: 9.773 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.335, allocations: 129.8 kB / 416.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.599e-05/0.335, allocations: 19.86 kB / 416.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004026/0.3355, allocations: 190.8 kB / 416.6 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3355, allocations: 4 kB / 416.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.3355, allocations: 0 / 416.6 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3355, allocations: 3.938 kB / 416.6 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004713/0.336, allocations: 277.5 kB / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.336, allocations: 0 / 416.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.3362, allocations: 35.97 kB / 416.9 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.3362, allocations: 4 kB / 416.9 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.3362, allocations: 11.98 kB / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3362, allocations: 0 / 416.9 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3362, allocations: 4.062 kB / 416.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.3369, allocations: 479.2 kB / 417.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.853e-05/0.3369, allocations: 101 kB / 417.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.09e-05/0.337, allocations: 4.062 kB / 417.5 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001799/0.3372, allocations: 7.984 kB / 417.5 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.693e-05/0.3372, allocations: 15.98 kB / 417.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.115e-05/0.3372, allocations: 4 kB / 417.5 MB, free: 8.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001836/0.3374, allocations: 174 kB / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3374, allocations: 0 / 417.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003528/0.3378, allocations: 32 kB / 417.7 MB, free: 8.207 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009364/0.3387, allocations: 1.011 MB / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003188/0.3391, allocations: 115.9 kB / 418.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3391, allocations: 0 / 418.9 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.3392, allocations: 63.91 kB / 418.9 MB, free: 6.988 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.3397, allocations: 27.81 kB / 418.9 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003364/0.343, allocations: 2.588 MB / 421.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3435, allocations: 0.7397 MB / 422.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.471e-05/0.3435, allocations: 21.53 kB / 422.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.3437, allocations: 71.41 kB / 422.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3437, allocations: 0 / 422.4 MB, free: 3.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.3738, allocations: 3.669 MB / 426 MB, free: 15.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.139/8.513, allocations: 17.89 kB / 426 MB, free: 15.77 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.Modulation.pipe 2>&1)