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.001541/0.001541, allocations: 106.4 kB / 16.92 MB, free: 6.145 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.001833/0.001833, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.375/1.375, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001/0.001, allocations: 42.97 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1079, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003488/0.1115, allocations: 1.98 MB / 352.1 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1126, allocations: 0.5726 MB / 352.7 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1128, allocations: 4 kB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.113, allocations: 43.53 kB / 352.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.1131, allocations: 47.58 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002723/0.1134, allocations: 59.88 kB / 352.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003168/0.1137, allocations: 211.2 kB / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.114, allocations: 80.2 kB / 353.1 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1141, allocations: 71.7 kB / 353.2 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.1142, allocations: 75.56 kB / 353.3 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.1143, allocations: 12 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.965e-05/0.1143, allocations: 16 kB / 353.3 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.373e-05/0.1144, allocations: 43.78 kB / 353.4 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.265e-05/0.1145, allocations: 79.48 kB / 353.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002246/0.1147, allocations: 163.6 kB / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1147, allocations: 0 / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1147, allocations: 0 / 353.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.79e-06/0.1147, allocations: 0 / 353.6 MB, free: 0.8555 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.0007278/0.1155, allocations: 0.4906 MB / 354.1 MB, free: 324 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.518e-05/0.1155, allocations: 11.89 kB / 354.1 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.1156, allocations: 50.73 kB / 354.1 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.833e-05/0.1156, allocations: 28.59 kB / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002521/0.1159, allocations: 228 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1159, allocations: 8.375 kB / 354.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.116, allocations: 19.84 kB / 354.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/0.1163, allocations: 168.7 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.1163, allocations: 0 / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1163, allocations: 8 kB / 354.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1164, allocations: 7.938 kB / 354.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.1166, allocations: 87.94 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009184/0.1175, allocations: 0.6371 MB / 355.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002594/0.1178, allocations: 127.8 kB / 355.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.1179, allocations: 58.67 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.309e-05/0.1179, allocations: 7.984 kB / 355.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.118, allocations: 34.56 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.118, allocations: 3.938 kB / 355.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004849/0.1185, allocations: 173.3 kB / 355.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.241e-05/0.1186, allocations: 114.9 kB / 355.8 MB, free: 14.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.1188, allocations: 233 kB / 356.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1189, allocations: 25.7 kB / 356.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.6e-05/0.119, allocations: 136 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.598e-05/0.119, allocations: 43.36 kB / 356.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/0.1191, allocations: 29.7 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1192, allocations: 338.8 kB / 356.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.1193, allocations: 43.97 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001391/0.1195, allocations: 94.78 kB / 356.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.1198, allocations: 138.8 kB / 356.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1198, allocations: 0 / 356.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003511/0.1201, allocations: 189.2 kB / 357.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1201, allocations: 8 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1202, allocations: 0 / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1202, allocations: 4 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1203, allocations: 31.92 kB / 357.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.1204, allocations: 8.547 kB / 357.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.1205, allocations: 15.84 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.1205, allocations: 8.234 kB / 357.2 MB, free: 12.96 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.0001201/0.1206, allocations: 137.7 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.108e-05/0.1207, allocations: 35.62 kB / 357.3 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003827/0.1211, allocations: 174.8 kB / 357.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1211, allocations: 4 kB / 357.5 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.1211, allocations: 4 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.1212, allocations: 8 kB / 357.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004497/0.1216, allocations: 273.3 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1216, allocations: 0 / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1218, allocations: 43.91 kB / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1218, allocations: 0 / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.1219, allocations: 4 kB / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1219, allocations: 0 / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1219, allocations: 0 / 357.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005464/0.1224, allocations: 473.9 kB / 358.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.12e-05/0.1225, allocations: 104.9 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.244e-05/0.1225, allocations: 0 / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.1228, allocations: 11.94 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.1228, allocations: 11.98 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.1228, allocations: 11.92 kB / 358.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.123, allocations: 172.5 kB / 358.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.123, allocations: 0 / 358.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003637/0.1234, allocations: 31.98 kB / 358.6 MB, free: 11.39 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.000845/0.1242, allocations: 1.021 MB / 359.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003212/0.1245, allocations: 119.9 kB / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1245, allocations: 0 / 359.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.1247, allocations: 63.91 kB / 359.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004323/0.1251, allocations: 20.75 kB / 359.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.1283, allocations: 2.561 MB / 362.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.1287, allocations: 0.7397 MB / 363.1 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.598e-05/0.1287, allocations: 21.53 kB / 363.2 MB, free: 6.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.1289, allocations: 67.41 kB / 363.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1289, allocations: 0 / 363.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1532, allocations: 3.538 MB / 366.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.245/7.398, allocations: 15.77 kB / 366.8 MB, free: 3.094 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Blocks_Examples_Modulation.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Modulation/Modulation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches