Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_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.001045/0.001045, 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.00113/0.00113, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 67.88 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2731, allocations: 50.54 MB / 408.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002911/0.276, allocations: 2.011 MB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.2772, allocations: 0.6387 MB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.2773, allocations: 7.938 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001636/0.2775, allocations: 39.55 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.912e-05/0.2776, allocations: 47.58 kB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.2779, allocations: 83.83 kB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.2781, allocations: 203.2 kB / 411.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.2783, allocations: 72.36 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2785, allocations: 83.62 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.2786, allocations: 75.58 kB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.765e-05/0.2787, allocations: 15.94 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.525e-05/0.2787, allocations: 16 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.798e-05/0.2788, allocations: 39.83 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.146e-05/0.2788, allocations: 83.48 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002384/0.2791, allocations: 186.2 kB / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2791, allocations: 0 / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2791, allocations: 0 / 412.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.361e-06/0.2791, allocations: 0 / 412.3 MB, free: 13.98 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.0006689/0.2798, allocations: 0.4944 MB / 412.8 MB, free: 13.44 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2798, allocations: 8.031 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.2799, allocations: 46.73 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002303/0.2801, allocations: 44.78 kB / 412.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.2805, allocations: 247.9 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/0.2805, allocations: 8.375 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.2805, allocations: 20.36 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.2808, allocations: 160.3 kB / 413.3 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.2809, allocations: 3.938 kB / 413.4 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.2809, allocations: 8 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.2809, allocations: 4 kB / 413.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002477/0.2812, allocations: 99.86 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008617/0.282, allocations: 0.6412 MB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.2823, allocations: 123.8 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.2824, allocations: 54.67 kB / 414.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.2824, allocations: 8 kB / 414.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.161e-05/0.2825, allocations: 38.5 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.2825, allocations: 0 / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004946/0.283, allocations: 181.4 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.214e-05/0.283, allocations: 102.9 kB / 414.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002186/0.2833, allocations: 242.6 kB / 414.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.2833, allocations: 25.7 kB / 414.9 MB, free: 11.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.121e-05/0.2834, allocations: 144 kB / 415 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.889e-05/0.2834, allocations: 51.52 kB / 415.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.2835, allocations: 33.7 kB / 415.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2836, allocations: 334.8 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.2837, allocations: 39.97 kB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.2839, allocations: 94.78 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.2841, allocations: 142.8 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.2841, allocations: 3.938 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003435/0.2845, allocations: 181.4 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2845, allocations: 8 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.2845, allocations: 0 / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.2845, allocations: 4 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000172/0.2847, allocations: 39.91 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.2847, allocations: 4 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.2849, allocations: 23.81 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.2849, allocations: 4 kB / 415.9 MB, free: 10.03 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.0001155/0.285, allocations: 141.7 kB / 416.1 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-05/0.2851, allocations: 23.86 kB / 416.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003896/0.2855, allocations: 186.8 kB / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2855, allocations: 0 / 416.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.2855, allocations: 4 kB / 416.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.2855, allocations: 0 / 416.3 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.286, allocations: 277.4 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.286, allocations: 0.5625 kB / 416.6 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.2862, allocations: 39.92 kB / 416.6 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.2862, allocations: 7.938 kB / 416.6 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.2862, allocations: 7.984 kB / 416.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.2862, allocations: 4 kB / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2862, allocations: 0 / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.2868, allocations: 484.8 kB / 417.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.2869, allocations: 92.97 kB / 417.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.261e-05/0.2869, allocations: 8.062 kB / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.2871, allocations: 12.08 kB / 417.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.953e-05/0.2872, allocations: 11.97 kB / 417.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.2872, allocations: 4 kB / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.2873, allocations: 174 kB / 417.4 MB, free: 8.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2873, allocations: 4 kB / 417.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003658/0.2877, allocations: 32 kB / 417.4 MB, free: 8.445 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.0007749/0.2885, allocations: 1.011 MB / 418.4 MB, free: 7.402 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003054/0.2888, allocations: 115.9 kB / 418.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2888, allocations: 3.938 kB / 418.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.289, allocations: 59.91 kB / 418.6 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004278/0.2894, allocations: 16.56 kB / 418.6 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002888/0.2923, allocations: 2.592 MB / 421.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.2926, allocations: 0.7397 MB / 422 MB, free: 3.719 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.742e-05/0.2927, allocations: 21.53 kB / 422 MB, free: 3.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.2928, allocations: 67.41 kB / 422.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2928, allocations: 0 / 422.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0198/0.3126, allocations: 3.679 MB / 425.7 MB, free: 12 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/8.223, allocations: 15.17 kB / 425.7 MB, free: 0 / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Modulation.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Modulation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches