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.001352/0.001352, allocations: 103.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00142/0.00142, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.485/1.485, allocations: 227.7 MB / 247.1 MB, free: 10.3 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.001965/0.001965, allocations: 62.67 kB / 307.3 MB, free: 416 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1202, allocations: 50.54 MB / 357.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003678/0.124, allocations: 1.995 MB / 359.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1252, allocations: 0.6427 MB / 360.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1253, allocations: 4 kB / 360.5 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.1255, allocations: 35.55 kB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.1256, allocations: 47.58 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000281/0.1259, allocations: 87.83 kB / 360.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002614/0.1262, allocations: 199.2 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.1264, allocations: 76.34 kB / 360.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.1266, allocations: 79.64 kB / 361 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.1267, allocations: 87.48 kB / 361.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.1268, allocations: 12 kB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.235e-05/0.1269, allocations: 16 kB / 361.1 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.023e-05/0.1269, allocations: 39.84 kB / 361.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.127, allocations: 79.48 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002344/0.1273, allocations: 175.6 kB / 361.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1273, allocations: 3.984 kB / 361.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1273, allocations: 0 / 361.4 MB, free: 10.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.22e-05/0.1273, allocations: 0 / 361.4 MB, free: 10.26 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.0008297/0.1281, allocations: 0.4905 MB / 361.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.1282, allocations: 12.03 kB / 361.9 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.217e-05/0.1282, allocations: 50.73 kB / 362 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002377/0.1285, allocations: 36.64 kB / 362 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.1288, allocations: 247.7 kB / 362.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.1289, allocations: 16.38 kB / 362.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.1289, allocations: 12.38 kB / 362.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.1292, allocations: 164.3 kB / 362.4 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1293, allocations: 4 kB / 362.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.1293, allocations: 8 kB / 362.5 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1293, allocations: 4 kB / 362.5 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.1295, allocations: 91.88 kB / 362.6 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.1306, allocations: 0.6372 MB / 363.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000265/0.1309, allocations: 127.8 kB / 363.3 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.131, allocations: 62.66 kB / 363.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.131, allocations: 7.984 kB / 363.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.1311, allocations: 34.56 kB / 363.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.1311, allocations: 0 / 363.4 MB, free: 8.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005343/0.1316, allocations: 185.3 kB / 363.6 MB, free: 7.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.1317, allocations: 106.8 kB / 363.7 MB, free: 7.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002959/0.132, allocations: 234.6 kB / 363.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.1321, allocations: 29.7 kB / 364 MB, free: 7.469 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.1322, allocations: 140 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.641e-05/0.1323, allocations: 47.28 kB / 364.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.376e-05/0.1323, allocations: 33.7 kB / 364.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.1325, allocations: 330.8 kB / 364.5 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.1327, allocations: 43.97 kB / 364.5 MB, free: 6.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.1328, allocations: 86.84 kB / 364.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.1331, allocations: 150.7 kB / 364.8 MB, free: 6.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.1331, allocations: 7.938 kB / 364.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003726/0.1335, allocations: 185.7 kB / 365 MB, free: 6.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1335, allocations: 4 kB / 365 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1335, allocations: 4 kB / 365 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1336, allocations: 0 / 365 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.1337, allocations: 36.03 kB / 365 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.1337, allocations: 7.938 kB / 365 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.1339, allocations: 23.97 kB / 365 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.1339, allocations: 12 kB / 365 MB, free: 6.305 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.134, allocations: 133.8 kB / 365.2 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.1341, allocations: 19.72 kB / 365.2 MB, free: 6.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004017/0.1345, allocations: 182.8 kB / 365.4 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1345, allocations: 4 kB / 365.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1345, allocations: 4 kB / 365.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1345, allocations: 0 / 365.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004994/0.1351, allocations: 277.3 kB / 365.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1351, allocations: 0 / 365.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1353, allocations: 39.91 kB / 365.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1353, allocations: 0 / 365.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.702e-05/0.1353, allocations: 8 kB / 365.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1353, allocations: 0 / 365.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/0.1353, allocations: 3.938 kB / 365.7 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000613/0.1359, allocations: 478.2 kB / 366.2 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.367e-05/0.136, allocations: 100.8 kB / 366.3 MB, free: 4.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.037e-05/0.1361, allocations: 4.062 kB / 366.3 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/0.1363, allocations: 8 kB / 366.3 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.841e-05/0.1363, allocations: 15.97 kB / 366.3 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.1363, allocations: 8 kB / 366.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001967/0.1365, allocations: 174 kB / 366.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1366, allocations: 0 / 366.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003519/0.1369, allocations: 35.94 kB / 366.5 MB, free: 4.738 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 (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.0009324/0.1378, allocations: 1.003 MB / 367.5 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003319/0.1382, allocations: 115.9 kB / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1382, allocations: 0 / 367.6 MB, free: 3.594 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.1383, allocations: 68.59 kB / 367.7 MB, free: 3.527 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003914/0.1387, allocations: 16.7 kB / 367.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003458/0.1422, allocations: 2.59 MB / 370.3 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.1427, allocations: 0.7435 MB / 371 MB, free: 4 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.1675/0.3102, allocations: 19.81 kB / 371.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.3104, allocations: 71.69 kB / 371.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3104, allocations: 1.531 kB / 371.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.3409, allocations: 3.597 MB / 374.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.984/8.324, allocations: 3.172 kB / 374.7 MB, free: 19.09 MB / 302.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)