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.001718/0.001718, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001941/0.001941, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 63.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2877, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003579/0.2914, allocations: 2.015 MB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.2926, allocations: 0.631 MB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.2927, allocations: 7.938 kB / 411.4 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.2929, allocations: 43.53 kB / 411.4 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.516e-05/0.293, allocations: 43.58 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.2933, allocations: 79.84 kB / 411.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002703/0.2936, allocations: 207.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.2938, allocations: 76.34 kB / 411.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.294, allocations: 79.64 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.2941, allocations: 87.48 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.2941, allocations: 12 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.057e-05/0.2942, allocations: 16 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.2943, allocations: 31.86 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.719e-05/0.2944, allocations: 83.47 kB / 412.2 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.2946, allocations: 182.2 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2946, allocations: 4 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2947, allocations: 4 kB / 412.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.2947, allocations: 0 / 412.3 MB, free: 13.91 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.0008789/0.2956, allocations: 0.4905 MB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.2956, allocations: 12.02 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.407e-05/0.2957, allocations: 42.75 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002502/0.2959, allocations: 44.77 kB / 412.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.2963, allocations: 251.9 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2963, allocations: 8.375 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.353e-05/0.2964, allocations: 16.31 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003433/0.2967, allocations: 172.2 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.2968, allocations: 3.938 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.2968, allocations: 4 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.2968, allocations: 4 kB / 413.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.297, allocations: 91.95 kB / 413.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2981, allocations: 0.6373 MB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002533/0.2983, allocations: 131.8 kB / 414.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2985, allocations: 58.69 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.2985, allocations: 7.969 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.2986, allocations: 46.5 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.2986, allocations: 0 / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004978/0.2991, allocations: 173.4 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.953e-05/0.2992, allocations: 106.8 kB / 414.6 MB, free: 11.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.2994, allocations: 238.6 kB / 414.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.2995, allocations: 25.83 kB / 414.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.2996, allocations: 140 kB / 415 MB, free: 10.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.141e-05/0.2996, allocations: 47.59 kB / 415.1 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.2997, allocations: 33.69 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002811/0.3, allocations: 334.8 kB / 415.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.3001, allocations: 43.91 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.3003, allocations: 90.84 kB / 415.5 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.3005, allocations: 146.7 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3006, allocations: 3.938 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003564/0.3009, allocations: 177.4 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.3009, allocations: 8 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.301, allocations: 4.188 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.301, allocations: 4 kB / 415.9 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.3011, allocations: 31.92 kB / 415.9 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.3012, allocations: 7.984 kB / 415.9 MB, free: 9.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.3013, allocations: 23.83 kB / 415.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.3013, allocations: 4 kB / 415.9 MB, free: 9.965 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.0001342/0.3014, allocations: 137.7 kB / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.3015, allocations: 23.86 kB / 416.1 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003916/0.3019, allocations: 182.8 kB / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3019, allocations: 0 / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3019, allocations: 0.5625 kB / 416.3 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3019, allocations: 4 kB / 416.3 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004808/0.3024, allocations: 281.3 kB / 416.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.3024, allocations: 4 kB / 416.6 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001845/0.3026, allocations: 35.91 kB / 416.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.3026, allocations: 0 / 416.6 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.3027, allocations: 15.94 kB / 416.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3027, allocations: 0 / 416.6 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3027, allocations: 4.156 kB / 416.6 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.3033, allocations: 481 kB / 417.1 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.242e-05/0.3034, allocations: 105 kB / 417.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.138e-05/0.3034, allocations: 8.062 kB / 417.2 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.3036, allocations: 8 kB / 417.2 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.034e-05/0.3037, allocations: 8.078 kB / 417.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.3037, allocations: 11.97 kB / 417.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001842/0.3039, allocations: 174 kB / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3039, allocations: 0 / 417.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003611/0.3043, allocations: 32 kB / 417.4 MB, free: 8.383 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.0009162/0.3052, allocations: 1.01 MB / 418.4 MB, free: 7.344 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.3055, allocations: 115.9 kB / 418.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.3055, allocations: 4 kB / 418.6 MB, free: 7.227 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.3057, allocations: 63.89 kB / 418.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.3061, allocations: 12.56 kB / 418.6 MB, free: 7.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003382/0.3095, allocations: 2.592 MB / 421.2 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.3099, allocations: 0.7475 MB / 422 MB, free: 3.652 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.598e-05/0.31, allocations: 13.55 kB / 422 MB, free: 3.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001163/0.3101, allocations: 71.41 kB / 422.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3101, allocations: 0 / 422.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.3373, allocations: 3.676 MB / 425.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.317/8.655, allocations: 15.02 kB / 425.7 MB, free: 15.94 MB / 350.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.1.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