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.00138/0.00138, allocations: 112 kB / 17.06 MB, free: 5.992 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.00152/0.00152, allocations: 194.9 kB / 18.01 MB, free: 5.074 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.408/1.408, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 43.94 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2814, allocations: 49.44 MB / 400.2 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003059/0.2845, allocations: 1.987 MB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.2855, allocations: 0.5803 MB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.2857, allocations: 0 / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001681/0.2859, allocations: 43.53 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.464e-05/0.286, allocations: 39.58 kB / 402.9 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.2862, allocations: 67.88 kB / 402.9 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000232/0.2865, allocations: 203.2 kB / 403.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.2866, allocations: 72.36 kB / 403.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2868, allocations: 75.7 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.2869, allocations: 71.58 kB / 403.4 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.2869, allocations: 12 kB / 403.4 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.406e-05/0.287, allocations: 16 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.34e-05/0.287, allocations: 39.78 kB / 403.4 MB, free: 5.609 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.262e-05/0.2871, allocations: 87.41 kB / 403.5 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.2873, allocations: 178.3 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.2874, allocations: 0 / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2874, allocations: 0 / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.2874, allocations: 0 / 403.7 MB, free: 5.352 MB / 318.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.0007098/0.2881, allocations: 0.4904 MB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.2882, allocations: 12.03 kB / 404.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.223e-05/0.2882, allocations: 50.67 kB / 404.2 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.2883, allocations: 24.8 kB / 404.3 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002546/0.2885, allocations: 236 kB / 404.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.855e-05/0.2886, allocations: 20.06 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.291e-05/0.2886, allocations: 12 kB / 404.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003282/0.2889, allocations: 168.7 kB / 404.7 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.289, allocations: 3.984 kB / 404.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.289, allocations: 8 kB / 404.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.722e-06/0.289, allocations: 0 / 404.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002117/0.2892, allocations: 95.88 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009542/0.2902, allocations: 0.6333 MB / 405.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.2904, allocations: 135.8 kB / 405.6 MB, free: 3.281 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.2906, allocations: 54.67 kB / 405.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.2906, allocations: 7.984 kB / 405.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.2906, allocations: 34.56 kB / 405.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.2906, allocations: 0 / 405.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004984/0.2911, allocations: 177.4 kB / 405.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.2912, allocations: 106.8 kB / 405.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00023/0.2914, allocations: 233 kB / 406.2 MB, free: 2.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.698e-05/0.2915, allocations: 29.7 kB / 406.2 MB, free: 2.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.524e-05/0.2916, allocations: 132.2 kB / 406.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.421e-05/0.2916, allocations: 47.58 kB / 406.4 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.2917, allocations: 33.7 kB / 406.4 MB, free: 2.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.2918, allocations: 338.8 kB / 406.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.2919, allocations: 35.97 kB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.2921, allocations: 94.84 kB / 406.9 MB, free: 1.875 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.2923, allocations: 147.2 kB / 407 MB, free: 1.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2923, allocations: 0 / 407 MB, free: 1.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003287/0.2927, allocations: 193.2 kB / 407.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.2927, allocations: 4 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2927, allocations: 4.188 kB / 407.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2927, allocations: 4 kB / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2929, allocations: 31.98 kB / 407.2 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.2929, allocations: 3.938 kB / 407.2 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.293, allocations: 27.81 kB / 407.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.467e-05/0.293, allocations: 8 kB / 407.3 MB, free: 1.43 MB / 318.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.0001057/0.2932, allocations: 129.8 kB / 407.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.289e-05/0.2932, allocations: 19.86 kB / 407.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003834/0.2936, allocations: 194.7 kB / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2936, allocations: 0 / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2936, allocations: 7.938 kB / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.2937, allocations: 0 / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.2941, allocations: 277.4 kB / 407.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2941, allocations: 0 / 407.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.2943, allocations: 31.97 kB / 407.9 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.2943, allocations: 4 kB / 407.9 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.2944, allocations: 8 kB / 407.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.2944, allocations: 4 kB / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2944, allocations: 4.031 kB / 407.9 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.2949, allocations: 471.6 kB / 408.4 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.22e-05/0.295, allocations: 101 kB / 408.5 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.295, allocations: 15.98 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.2952, allocations: 4 kB / 408.5 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.2953, allocations: 15.92 kB / 408.5 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.134e-05/0.2953, allocations: 4 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001596/0.2955, allocations: 168.5 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2955, allocations: 0 / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.2958, allocations: 32 kB / 408.7 MB, free: 15.86 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.000795/0.2966, allocations: 1.014 MB / 409.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003138/0.2969, allocations: 111.9 kB / 409.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.297, allocations: 0 / 409.9 MB, free: 14.71 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.2971, allocations: 63.91 kB / 409.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.2975, allocations: 16.38 kB / 409.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003141/0.3007, allocations: 2.59 MB / 412.5 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.301, allocations: 0.7397 MB / 413.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.509e-05/0.3011, allocations: 17.55 kB / 413.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3012, allocations: 71.41 kB / 413.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3012, allocations: 0 / 413.3 MB, free: 11.06 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.3237, allocations: 3.597 MB / 416.9 MB, free: 7.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.183, allocations: 11.7 kB / 417 MB, free: 7.512 MB / 334.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