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.001103/0.001103, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001167/0.001167, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.356/1.356, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 62.08 kB / 306.3 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09581/0.09695, allocations: 50.54 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003231/0.1002, allocations: 2.056 MB / 358.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.1014, allocations: 0.6311 MB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.1016, allocations: 0 / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1018, allocations: 31.67 kB / 359.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001298/0.1019, allocations: 27.72 kB / 359.6 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.1022, allocations: 79.86 kB / 359.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002452/0.1025, allocations: 199.1 kB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.1026, allocations: 72.34 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001839/0.1028, allocations: 71.7 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.103, allocations: 79.44 kB / 360.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.103, allocations: 8 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.639e-05/0.1031, allocations: 8 kB / 360.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.1031, allocations: 27.84 kB / 360.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.022e-05/0.1032, allocations: 83.47 kB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.1034, allocations: 167.6 kB / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1034, allocations: 0 / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1034, allocations: 0 / 360.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.1034, allocations: 3.938 kB / 360.4 MB, free: 10.88 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.0006381/0.104, allocations: 0.4946 MB / 360.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.1041, allocations: 8.031 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.691e-05/0.1041, allocations: 42.75 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002243/0.1044, allocations: 48.62 kB / 361 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.1046, allocations: 239.8 kB / 361.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.1046, allocations: 8.375 kB / 361.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.248e-05/0.1047, allocations: 16.38 kB / 361.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002891/0.105, allocations: 164.2 kB / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.105, allocations: 0 / 361.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.105, allocations: 4 kB / 361.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.105, allocations: 8 kB / 361.4 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.1052, allocations: 91.88 kB / 361.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.1061, allocations: 0.6372 MB / 362.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.1064, allocations: 127.8 kB / 362.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001111/0.1065, allocations: 50.69 kB / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.1065, allocations: 8 kB / 362.3 MB, free: 8.742 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.1066, allocations: 42.48 kB / 362.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.1066, allocations: 0 / 362.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004783/0.107, allocations: 177.2 kB / 362.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.034e-05/0.1071, allocations: 106.9 kB / 362.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.1073, allocations: 242.6 kB / 362.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1073, allocations: 25.7 kB / 362.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.1074, allocations: 140 kB / 363.1 MB, free: 7.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.1075, allocations: 47.23 kB / 363.1 MB, free: 7.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-05/0.1075, allocations: 37.7 kB / 363.1 MB, free: 7.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1077, allocations: 330.8 kB / 363.5 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001108/0.1078, allocations: 39.97 kB / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001294/0.1079, allocations: 94.83 kB / 363.6 MB, free: 7.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002509/0.1082, allocations: 147.2 kB / 363.7 MB, free: 7.223 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1082, allocations: 3.938 kB / 363.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003502/0.1085, allocations: 185.3 kB / 363.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1086, allocations: 8 kB / 363.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.1086, allocations: 0 / 363.9 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1086, allocations: 4 kB / 363.9 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1088, allocations: 43.86 kB / 364 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1088, allocations: 3.984 kB / 364 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.1089, allocations: 19.83 kB / 364 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.1089, allocations: 4 kB / 364 MB, free: 6.949 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 0.0001062/0.109, allocations: 141.8 kB / 364.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.479e-05/0.1091, allocations: 27.7 kB / 364.2 MB, free: 6.773 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003685/0.1095, allocations: 174.8 kB / 364.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.1095, allocations: 0 / 364.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1095, allocations: 4 kB / 364.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1095, allocations: 0 / 364.3 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004247/0.1099, allocations: 281.3 kB / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1099, allocations: 0 / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1101, allocations: 39.91 kB / 364.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.1101, allocations: 4 kB / 364.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1102, allocations: 0 / 364.7 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.1102, allocations: 4 kB / 364.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1102, allocations: 0 / 364.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005587/0.1107, allocations: 481.4 kB / 365.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.391e-05/0.1108, allocations: 104.9 kB / 365.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.1109, allocations: 4 kB / 365.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001827/0.1111, allocations: 8 kB / 365.3 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.274e-05/0.1111, allocations: 11.97 kB / 365.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.1111, allocations: 7.984 kB / 365.3 MB, free: 5.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001843/0.1113, allocations: 182 kB / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1113, allocations: 0 / 365.5 MB, free: 5.402 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003527/0.1117, allocations: 31.94 kB / 365.5 MB, free: 5.371 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.0008522/0.1126, allocations: 1.01 MB / 366.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003209/0.1129, allocations: 115.9 kB / 366.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1129, allocations: 0 / 366.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.1131, allocations: 59.91 kB / 366.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.1135, allocations: 28.48 kB / 366.7 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.1167, allocations: 2.638 MB / 369.3 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.117, allocations: 0.7516 MB / 370.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.306e-05/0.117, allocations: 17.55 kB / 370.1 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1172, allocations: 71.41 kB / 370.2 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1172, allocations: 0 / 370.2 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1816/0.2988, allocations: 3.366 MB / 373.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/0.299, allocations: 185.5 kB / 373.7 MB, free: 19.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.812/2.111, allocations: 0 / 373.7 MB, free: 19.24 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