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.001529/0.001529, allocations: 101.8 kB / 16.5 MB, free: 6.648 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.001658/0.001658, allocations: 194.3 kB / 17.42 MB, free: 6.059 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.403/1.403, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 47.11 kB / 300 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1027, allocations: 49.46 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003576/0.1063, allocations: 2.033 MB / 351.5 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1074, allocations: 0.5571 MB / 352.1 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000184/0.1076, allocations: 7.938 kB / 352.1 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000204/0.1078, allocations: 31.72 kB / 352.1 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.108, allocations: 31.66 kB / 352.2 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1082, allocations: 47.95 kB / 352.2 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002688/0.1085, allocations: 203.2 kB / 352.4 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000192/0.1087, allocations: 80.94 kB / 352.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.1089, allocations: 63.66 kB / 352.6 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.109, allocations: 75.56 kB / 352.6 MB, free: 1.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.109, allocations: 8 kB / 352.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.455e-05/0.1091, allocations: 4 kB / 352.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.56e-05/0.1091, allocations: 31.84 kB / 352.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.877e-05/0.1092, allocations: 79.47 kB / 352.7 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.1094, allocations: 155.6 kB / 352.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.1094, allocations: 7.984 kB / 352.9 MB, free: 1.328 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1094, allocations: 4 kB / 352.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1094, allocations: 0 / 352.9 MB, free: 1.324 MB / 286.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.0007349/0.1101, allocations: 498.4 kB / 353.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.1102, allocations: 8.031 kB / 353.4 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.501e-05/0.1102, allocations: 50.69 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.852e-05/0.1103, allocations: 24.64 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002525/0.1106, allocations: 231.9 kB / 353.7 MB, free: 444 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.448e-05/0.1106, allocations: 8.375 kB / 353.7 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.5e-05/0.1106, allocations: 23.84 kB / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003273/0.111, allocations: 168.1 kB / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.111, allocations: 0 / 353.9 MB, free: 228 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.111, allocations: 4 kB / 353.9 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.111, allocations: 4 kB / 353.9 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000236/0.1113, allocations: 95.88 kB / 354 MB, free: 124 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009907/0.1123, allocations: 0.6332 MB / 354.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.1125, allocations: 127.8 kB / 354.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.1127, allocations: 54.69 kB / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1127, allocations: 7.922 kB / 354.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.711e-05/0.1127, allocations: 42.56 kB / 354.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.1127, allocations: 0 / 354.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004814/0.1132, allocations: 169.4 kB / 355 MB, free: 14.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.1133, allocations: 106.8 kB / 355.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1135, allocations: 225 kB / 355.4 MB, free: 14.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.1136, allocations: 33.64 kB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.44e-05/0.1137, allocations: 144.1 kB / 355.5 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.812e-05/0.1137, allocations: 43.34 kB / 355.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.733e-05/0.1138, allocations: 37.7 kB / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1139, allocations: 334.8 kB / 355.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.114, allocations: 39.97 kB / 356 MB, free: 13.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.1142, allocations: 90.84 kB / 356.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.1145, allocations: 146.7 kB / 356.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.1145, allocations: 0 / 356.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003581/0.1148, allocations: 173.2 kB / 356.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1149, allocations: 8 kB / 356.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.1149, allocations: 4.188 kB / 356.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.916e-05/0.1149, allocations: 8.031 kB / 356.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.1151, allocations: 40.47 kB / 356.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1151, allocations: 4 kB / 356.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1152, allocations: 19.83 kB / 356.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.837e-05/0.1152, allocations: 4 kB / 356.5 MB, free: 13.44 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.0001259/0.1154, allocations: 142.1 kB / 356.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-05/0.1155, allocations: 23.72 kB / 356.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003834/0.1158, allocations: 186.8 kB / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1159, allocations: 0 / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1159, allocations: 3.938 kB / 356.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1159, allocations: 4 kB / 356.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004677/0.1164, allocations: 277.3 kB / 357.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.1164, allocations: 7.938 kB / 357.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.1166, allocations: 27.98 kB / 357.1 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.1166, allocations: 4 kB / 357.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.399e-05/0.1166, allocations: 11.98 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1166, allocations: 0 / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1166, allocations: 4 kB / 357.1 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005472/0.1172, allocations: 473.5 kB / 357.6 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.943e-05/0.1173, allocations: 96.83 kB / 357.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.209e-05/0.1173, allocations: 4.062 kB / 357.7 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.1175, allocations: 7.984 kB / 357.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.481e-05/0.1176, allocations: 15.98 kB / 357.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.1176, allocations: 7.938 kB / 357.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001508/0.1177, allocations: 172.5 kB / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1177, allocations: 0 / 357.9 MB, free: 11.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003603/0.1181, allocations: 28 kB / 357.9 MB, free: 11.88 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.0008184/0.1189, allocations: 1.006 MB / 358.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003115/0.1193, allocations: 119.9 kB / 359 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.1193, allocations: 0 / 359 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.1194, allocations: 63.91 kB / 359.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004183/0.1198, allocations: 20.38 kB / 359.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00308/0.1229, allocations: 2.613 MB / 361.7 MB, free: 7.902 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00035/0.1233, allocations: 0.7439 MB / 362.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.654e-05/0.1234, allocations: 17.53 kB / 362.5 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.1235, allocations: 71.41 kB / 362.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of SimCode: time 1.803e-06/0.1235, allocations: 0 / 362.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04026/0.1638, allocations: 3.338 MB / 365.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001947/0.164, allocations: 176.3 kB / 366.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/1.989, allocations: 0 / 366.1 MB, free: 3.539 MB / 302.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