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.0007187/0.0007187, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007917/0.0007918, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.7 MB / 246.8 MB, free: 9.555 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001978/0.0001979, allocations: 4 kB / 307.8 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08825/0.08846, allocations: 51.53 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.00199/0.09049, allocations: 1.701 MB / 361.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.09158, allocations: 0.6116 MB / 361.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001564/0.09176, allocations: 7.938 kB / 361.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.09192, allocations: 35.72 kB / 361.7 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.09203, allocations: 27.72 kB / 361.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.09229, allocations: 71.88 kB / 361.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002393/0.09254, allocations: 195.1 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/0.09272, allocations: 76.33 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.09289, allocations: 59.66 kB / 362.1 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.09301, allocations: 79.5 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.09304, allocations: 4 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.851e-05/0.09309, allocations: 4 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.535e-05/0.09312, allocations: 23.86 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.653e-05/0.09321, allocations: 101.2 kB / 362.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001778/0.09339, allocations: 159.6 kB / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.0934, allocations: 0 / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.09341, allocations: 0 / 362.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.848e-06/0.09343, allocations: 0 / 362.5 MB, free: 9.801 MB / 302.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.0005853/0.09402, allocations: 478.6 kB / 363 MB, free: 9.285 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.09407, allocations: 15.91 kB / 363 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.889e-05/0.09412, allocations: 46.73 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.09435, allocations: 44.64 kB / 363.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002334/0.0946, allocations: 235.9 kB / 363.3 MB, free: 8.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.09462, allocations: 20.31 kB / 363.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.09466, allocations: 24.27 kB / 363.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002939/0.09496, allocations: 164.3 kB / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.09498, allocations: 0 / 363.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.725e-05/0.095, allocations: 8 kB / 363.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.09501, allocations: 4 kB / 363.5 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.09524, allocations: 99.88 kB / 363.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008553/0.09611, allocations: 0.641 MB / 364.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002324/0.09635, allocations: 127.8 kB / 364.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.09648, allocations: 62.67 kB / 364.4 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.0965, allocations: 8 kB / 364.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.09653, allocations: 30.56 kB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.163e-06/0.09653, allocations: 0 / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004788/0.09702, allocations: 189.4 kB / 364.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.09708, allocations: 106.8 kB / 364.8 MB, free: 7.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.0973, allocations: 238.6 kB / 365 MB, free: 7.047 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.09733, allocations: 29.83 kB / 365 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.274e-05/0.0974, allocations: 144 kB / 365.2 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.717e-05/0.09746, allocations: 43.3 kB / 365.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.09749, allocations: 21.72 kB / 365.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.0976, allocations: 330.8 kB / 365.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.09772, allocations: 47.97 kB / 365.6 MB, free: 6.418 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000133/0.09786, allocations: 90.84 kB / 365.7 MB, free: 6.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002683/0.09813, allocations: 154.7 kB / 365.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.09815, allocations: 7.938 kB / 365.9 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003377/0.09849, allocations: 189.2 kB / 366 MB, free: 5.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.09852, allocations: 7.984 kB / 366 MB, free: 5.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.09853, allocations: 4 kB / 366 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.09854, allocations: 0 / 366 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000152/0.0987, allocations: 40.17 kB / 366.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.09872, allocations: 11.88 kB / 366.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.09883, allocations: 24.3 kB / 366.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.09885, allocations: 4 kB / 366.1 MB, free: 5.84 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 9.724e-05/0.09895, allocations: 137.7 kB / 366.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.956e-05/0.09903, allocations: 15.81 kB / 366.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003746/0.09941, allocations: 198.8 kB / 366.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.09942, allocations: 0 / 366.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.09944, allocations: 8.094 kB / 366.5 MB, free: 5.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.09945, allocations: 7.922 kB / 366.5 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.09986, allocations: 277.3 kB / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.09987, allocations: 0 / 366.8 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001766/0.1001, allocations: 43.97 kB / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1001, allocations: 0 / 366.8 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.1001, allocations: 4 kB / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1001, allocations: 0 / 366.8 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1001, allocations: 3.938 kB / 366.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005104/0.1006, allocations: 488.7 kB / 367.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.747e-05/0.1007, allocations: 100.9 kB / 367.4 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.1007, allocations: 4 kB / 367.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.1009, allocations: 12 kB / 367.4 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.1009, allocations: 11.98 kB / 367.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.101, allocations: 7.984 kB / 367.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.1011, allocations: 174 kB / 367.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1011, allocations: 0 / 367.6 MB, free: 4.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003313/0.1014, allocations: 35.94 kB / 367.6 MB, free: 4.238 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.0007358/0.1022, allocations: 1.027 MB / 368.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002762/0.1025, allocations: 123.9 kB / 368.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1025, allocations: 0 / 368.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001304/0.1026, allocations: 68.28 kB / 368.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.103, allocations: 28.34 kB / 368.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002803/0.1058, allocations: 2.733 MB / 371.6 MB, free: 108 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1428/0.2486, allocations: 0.7359 MB / 372.3 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.2487, allocations: 20.92 kB / 372.4 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2489, allocations: 70.64 kB / 372.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2489, allocations: 0 / 372.4 MB, free: 17.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01424/0.2631, allocations: 3.305 MB / 375.7 MB, free: 17.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001479/0.2633, allocations: 181.9 kB / 375.9 MB, free: 17.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.976, allocations: 7.203 kB / 375.9 MB, free: 17.5 MB / 302.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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.continuous,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.continuous,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