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.001567/0.001567, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002009/0.002009, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.395/1.395, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002153/0.002153, allocations: 64.23 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1027, allocations: 50.52 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003713/0.1065, allocations: 2.014 MB / 359.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1079, allocations: 0.6349 MB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.1081, allocations: 4 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002052/0.1084, allocations: 43.53 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001365/0.1085, allocations: 35.59 kB / 360.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003575/0.1089, allocations: 83.83 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003254/0.1093, allocations: 203.2 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002203/0.1095, allocations: 80.33 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.1097, allocations: 79.66 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.1098, allocations: 83.48 kB / 360.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.202e-05/0.1099, allocations: 12 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.683e-05/0.1099, allocations: 20 kB / 360.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.582e-05/0.11, allocations: 31.86 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.713e-05/0.1101, allocations: 91.41 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.1103, allocations: 171.6 kB / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1103, allocations: 0 / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1103, allocations: 0 / 361.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.235e-05/0.1104, allocations: 0 / 361.1 MB, free: 10.4 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.0006564/0.111, allocations: 0.4984 MB / 361.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1111, allocations: 8.031 kB / 361.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.1111, allocations: 42.75 kB / 361.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002416/0.1114, allocations: 44.62 kB / 361.7 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1116, allocations: 239.8 kB / 362 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.1116, allocations: 12.38 kB / 362 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.1117, allocations: 16.38 kB / 362 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.112, allocations: 168.3 kB / 362.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.112, allocations: 3.938 kB / 362.2 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.112, allocations: 4 kB / 362.2 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.112, allocations: 4 kB / 362.2 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.1123, allocations: 83.89 kB / 362.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009928/0.1133, allocations: 0.645 MB / 362.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002569/0.1135, allocations: 135.8 kB / 363 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.1137, allocations: 50.69 kB / 363.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.911e-05/0.1137, allocations: 3.984 kB / 363.1 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/0.1137, allocations: 42.55 kB / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.865e-06/0.1138, allocations: 0 / 363.1 MB, free: 8.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005083/0.1143, allocations: 181.6 kB / 363.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.377e-05/0.1143, allocations: 102.8 kB / 363.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.1146, allocations: 242.6 kB / 363.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.1146, allocations: 29.7 kB / 363.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.1147, allocations: 144.1 kB / 363.8 MB, free: 7.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.579e-05/0.1148, allocations: 47.3 kB / 363.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.1148, allocations: 29.7 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.115, allocations: 334.8 kB / 364.2 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1151, allocations: 40.09 kB / 364.2 MB, free: 7.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.1152, allocations: 105.3 kB / 364.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002576/0.1155, allocations: 146.8 kB / 364.5 MB, free: 6.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.1155, allocations: 3.938 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003562/0.1158, allocations: 181.2 kB / 364.7 MB, free: 6.531 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1159, allocations: 8 kB / 364.7 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1159, allocations: 4.188 kB / 364.7 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.1159, allocations: 4 kB / 364.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.1161, allocations: 31.92 kB / 364.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.347e-06/0.1161, allocations: 11.92 kB / 364.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.1162, allocations: 19.84 kB / 364.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.1162, allocations: 4 kB / 364.8 MB, free: 6.449 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.0001145/0.1164, allocations: 133.7 kB / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.441e-05/0.1164, allocations: 31.7 kB / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003879/0.1168, allocations: 186.8 kB / 365.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1169, allocations: 0 / 365.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.1169, allocations: 4 kB / 365.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.1169, allocations: 0 / 365.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004532/0.1173, allocations: 277.3 kB / 365.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1173, allocations: 0 / 365.4 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.1175, allocations: 35.91 kB / 365.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.1176, allocations: 8 kB / 365.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.1176, allocations: 4 kB / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1176, allocations: 0 / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1176, allocations: 7.938 kB / 365.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005074/0.1181, allocations: 465.6 kB / 365.9 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.1182, allocations: 104.9 kB / 366 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.1182, allocations: 8.188 kB / 366 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.1184, allocations: 8 kB / 366 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.1185, allocations: 15.92 kB / 366 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.1185, allocations: 7.984 kB / 366 MB, free: 5.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001392/0.1187, allocations: 174 kB / 366.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1187, allocations: 0 / 366.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003546/0.119, allocations: 35.94 kB / 366.2 MB, free: 4.867 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.0007873/0.1198, allocations: 0.9983 MB / 367.2 MB, free: 3.844 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000324/0.1202, allocations: 123.9 kB / 367.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1202, allocations: 0 / 367.4 MB, free: 3.723 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1203, allocations: 67.88 kB / 367.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.1207, allocations: 16.56 kB / 367.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003093/0.1238, allocations: 2.578 MB / 370 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.1242, allocations: 0.7439 MB / 370.8 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.602e-05/0.1243, allocations: 21.53 kB / 370.8 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001188/0.1244, allocations: 71.41 kB / 370.8 MB, free: 64 kB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1244, allocations: 0 / 370.8 MB, free: 64 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1757/0.3001, allocations: 3.585 MB / 374.4 MB, free: 20.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.997/8.297, allocations: 5.938 kB / 374.4 MB, free: 20.01 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