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.00166/0.00166, allocations: 113 kB / 17.07 MB, free: 6.016 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.001895/0.001895, allocations: 189.4 kB / 18 MB, free: 5.098 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.448/1.448, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 52.02 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2963, allocations: 49.43 MB / 400.2 MB, free: 8.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003596/0.2999, allocations: 1.995 MB / 402.2 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001355/0.3013, allocations: 0.5726 MB / 402.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.3014, allocations: 7.938 kB / 402.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001869/0.3016, allocations: 35.55 kB / 402.8 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.434e-05/0.3018, allocations: 43.64 kB / 402.9 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.302, allocations: 55.88 kB / 402.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.3023, allocations: 215.1 kB / 403.1 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.3025, allocations: 72.34 kB / 403.2 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000143/0.3027, allocations: 79.64 kB / 403.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.3029, allocations: 75.56 kB / 403.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.3029, allocations: 16 kB / 403.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.073e-05/0.3029, allocations: 12 kB / 403.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.151e-05/0.303, allocations: 31.86 kB / 403.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.534e-05/0.3031, allocations: 91.45 kB / 403.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002671/0.3034, allocations: 174.2 kB / 403.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.3034, allocations: 0 / 403.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3034, allocations: 0 / 403.7 MB, free: 5.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.3034, allocations: 0 / 403.7 MB, free: 5.484 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.0007651/0.3042, allocations: 0.4906 MB / 404.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3042, allocations: 8.031 kB / 404.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.782e-05/0.3043, allocations: 50.73 kB / 404.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.764e-05/0.3043, allocations: 24.8 kB / 404.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002949/0.3046, allocations: 232 kB / 404.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.223e-05/0.3047, allocations: 20.11 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.843e-05/0.3047, allocations: 16 kB / 404.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.3051, allocations: 168.6 kB / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3051, allocations: 0 / 404.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.3051, allocations: 8 kB / 404.7 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3051, allocations: 8 kB / 404.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.3054, allocations: 91.88 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.3066, allocations: 0.6411 MB / 405.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.3069, allocations: 127.8 kB / 405.6 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.3071, allocations: 50.67 kB / 405.6 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.3071, allocations: 11.98 kB / 405.6 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.193e-05/0.3071, allocations: 38.5 kB / 405.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.3071, allocations: 0 / 405.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000561/0.3077, allocations: 177.4 kB / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/0.3078, allocations: 106.8 kB / 405.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002859/0.3081, allocations: 237.1 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.3081, allocations: 25.7 kB / 406.2 MB, free: 2.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.3083, allocations: 132.1 kB / 406.3 MB, free: 2.582 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.744e-05/0.3083, allocations: 51.58 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.361e-05/0.3084, allocations: 29.7 kB / 406.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.3086, allocations: 334.8 kB / 406.7 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3087, allocations: 43.92 kB / 406.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.3089, allocations: 94.83 kB / 406.9 MB, free: 2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002934/0.3092, allocations: 143.2 kB / 407 MB, free: 1.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3092, allocations: 0 / 407 MB, free: 1.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000412/0.3096, allocations: 189.5 kB / 407.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3096, allocations: 8.031 kB / 407.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3096, allocations: 4 kB / 407.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/0.3097, allocations: 0 / 407.2 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001733/0.3098, allocations: 39.91 kB / 407.2 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.3099, allocations: 4 kB / 407.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.31, allocations: 11.89 kB / 407.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.31, allocations: 15.98 kB / 407.3 MB, free: 1.562 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.0001261/0.3101, allocations: 129.7 kB / 407.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-05/0.3102, allocations: 23.86 kB / 407.4 MB, free: 1.402 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004142/0.3107, allocations: 182.9 kB / 407.6 MB, free: 1.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.036e-06/0.3107, allocations: 4 kB / 407.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3107, allocations: 0 / 407.6 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3107, allocations: 3.984 kB / 407.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.3112, allocations: 273.4 kB / 407.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3112, allocations: 0 / 407.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.3114, allocations: 39.91 kB / 407.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.3114, allocations: 11.94 kB / 407.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3115, allocations: 0 / 407.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.3115, allocations: 7.938 kB / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3115, allocations: 0 / 407.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/0.3121, allocations: 482 kB / 408.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.125e-05/0.3122, allocations: 105 kB / 408.5 MB, free: 236 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.3122, allocations: 4 kB / 408.5 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.3124, allocations: 8 kB / 408.5 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.3125, allocations: 15.91 kB / 408.5 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3125, allocations: 8 kB / 408.5 MB, free: 200 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000177/0.3127, allocations: 168.5 kB / 408.7 MB, free: 32 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3127, allocations: 0 / 408.7 MB, free: 32 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003783/0.3131, allocations: 32 kB / 408.7 MB, free: 0 / 318.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.001108/0.3142, allocations: 1.004 MB / 409.7 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003706/0.3146, allocations: 115.9 kB / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3146, allocations: 0 / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.3148, allocations: 76.17 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00044/0.3153, allocations: 20.31 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004001/0.3193, allocations: 2.579 MB / 412.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.3197, allocations: 0.7397 MB / 413.3 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.607e-05/0.3198, allocations: 17.53 kB / 413.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.32, allocations: 71.41 kB / 413.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of SimCode: time 3.6e-07/0.32, allocations: 0 / 413.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0274/0.3474, allocations: 3.605 MB / 416.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.716, allocations: 11.7 kB / 417 MB, free: 7.641 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,sine.y,sinAM.y,cosAM.y,sinFM.y,cosFM.y Variables in the result:amplitude.amplitude,amplitude.f,amplitude.offset,amplitude.phase,amplitude.startTime,amplitude.y,cosAM.amplitude,cosAM.constantAmplitude,cosAM.constantFrequency,cosAM.offset,cosAM.phi,cosAM.useConstantAmplitude,cosAM.useConstantFrequency,cosAM.y,cosFM.constantAmplitude,cosFM.constantFrequency,cosFM.f,cosFM.offset,cosFM.phi,cosFM.useConstantAmplitude,cosFM.useConstantFrequency,cosFM.y,der(cosAM.phi),der(cosFM.phi),der(sinAM.phi),der(sinFM.phi),der(sine.phi),frequency.amplitude,frequency.f,frequency.offset,frequency.phase,frequency.startTime,frequency.y,sinAM.amplitude,sinAM.constantAmplitude,sinAM.constantFrequency,sinAM.offset,sinAM.phi,sinAM.useConstantAmplitude,sinAM.useConstantFrequency,sinAM.y,sinFM.constantAmplitude,sinFM.constantFrequency,sinFM.f,sinFM.offset,sinFM.phi,sinFM.useConstantAmplitude,sinFM.useConstantFrequency,sinFM.y,sine.constantAmplitude,sine.constantFrequency,sine.offset,sine.phi,sine.useConstantAmplitude,sine.useConstantFrequency,sine.y,time