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.001609/0.001609, allocations: 103.6 kB / 16.62 MB, free: 6.812 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.001797/0.001797, allocations: 193.8 kB / 17.55 MB, free: 5.941 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.365/1.365, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009599/0.0009599, allocations: 45.88 kB / 300.2 MB, free: 6.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1032, allocations: 49.45 MB / 349.7 MB, free: 4.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003411/0.1066, allocations: 2.04 MB / 351.7 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.1078, allocations: 0.5571 MB / 352.3 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1079, allocations: 7.938 kB / 352.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.108, allocations: 31.72 kB / 352.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001042/0.1081, allocations: 27.72 kB / 352.3 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000179/0.1083, allocations: 59.83 kB / 352.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002303/0.1086, allocations: 207.2 kB / 352.6 MB, free: 1.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.1088, allocations: 80.2 kB / 352.7 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.1089, allocations: 67.72 kB / 352.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.109, allocations: 79.55 kB / 352.8 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.1091, allocations: 16 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.319e-05/0.1091, allocations: 12 kB / 352.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.531e-05/0.1092, allocations: 35.8 kB / 352.9 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.459e-05/0.1092, allocations: 83.47 kB / 353 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001972/0.1094, allocations: 167.6 kB / 353.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1095, allocations: 4 kB / 353.1 MB, free: 1.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1095, allocations: 4 kB / 353.1 MB, free: 1.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.1095, allocations: 0 / 353.1 MB, free: 1.195 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.0006915/0.1102, allocations: 490.4 kB / 353.6 MB, free: 0.668 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.1102, allocations: 11.97 kB / 353.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.356e-05/0.1103, allocations: 50.73 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.958e-05/0.1104, allocations: 20.66 kB / 353.7 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.1106, allocations: 239.8 kB / 353.9 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1106, allocations: 12.38 kB / 353.9 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/0.1107, allocations: 15.94 kB / 354 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.111, allocations: 164.2 kB / 354.1 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.111, allocations: 3.938 kB / 354.1 MB, free: 100 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.111, allocations: 4 kB / 354.1 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.111, allocations: 4 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002192/0.1113, allocations: 87.94 kB / 354.2 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009948/0.1123, allocations: 0.6409 MB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002287/0.1125, allocations: 127.8 kB / 355 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.1126, allocations: 58.67 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.1127, allocations: 0 / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.1127, allocations: 42.5 kB / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.132e-06/0.1127, allocations: 0 / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004708/0.1132, allocations: 173.4 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.105e-05/0.1132, allocations: 106.8 kB / 355.4 MB, free: 14.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.1135, allocations: 237.1 kB / 355.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.1136, allocations: 25.7 kB / 355.6 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.854e-05/0.1137, allocations: 136 kB / 355.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.669e-05/0.1137, allocations: 47.34 kB / 355.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.996e-05/0.1138, allocations: 33.7 kB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.114, allocations: 334.8 kB / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001071/0.1141, allocations: 39.97 kB / 356.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.1142, allocations: 99.28 kB / 356.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002449/0.1145, allocations: 146.8 kB / 356.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.1145, allocations: 0 / 356.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003268/0.1148, allocations: 181.3 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1148, allocations: 12.03 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1148, allocations: 0 / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.1149, allocations: 4 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.115, allocations: 31.92 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.115, allocations: 7.984 kB / 356.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1151, allocations: 19.84 kB / 356.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.1152, allocations: 7.938 kB / 356.7 MB, free: 13.31 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.0001234/0.1153, allocations: 134.2 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.483e-05/0.1154, allocations: 35.7 kB / 356.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003805/0.1158, allocations: 178.8 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1158, allocations: 0 / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1158, allocations: 0 / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1158, allocations: 4 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004375/0.1162, allocations: 273.3 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1162, allocations: 4 kB / 357.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001833/0.1164, allocations: 39.91 kB / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1164, allocations: 0 / 357.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-05/0.1165, allocations: 8 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.1165, allocations: 0 / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.1165, allocations: 4 kB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005211/0.1171, allocations: 472 kB / 357.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.209e-05/0.1171, allocations: 104.9 kB / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.1172, allocations: 0 / 357.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.1173, allocations: 8 kB / 357.9 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.1174, allocations: 11.98 kB / 357.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1174, allocations: 16.2 kB / 358 MB, free: 11.95 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1176, allocations: 168.5 kB / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1176, allocations: 0 / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1179, allocations: 36 kB / 358.2 MB, free: 11.75 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.0007941/0.1187, allocations: 1.011 MB / 359.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1191, allocations: 119.9 kB / 359.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1191, allocations: 0 / 359.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.1192, allocations: 64.22 kB / 359.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.1196, allocations: 24.36 kB / 359.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.1228, allocations: 2.611 MB / 362 MB, free: 7.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.1232, allocations: 0.7397 MB / 362.7 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.897e-05/0.1232, allocations: 17.55 kB / 362.7 MB, free: 6.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000116/0.1234, allocations: 71.41 kB / 362.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1234, allocations: 0 / 362.8 MB, free: 6.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0396/0.163, allocations: 3.425 MB / 366.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.1632, allocations: 188.6 kB / 366.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.087, allocations: 0 / 366.4 MB, free: 3.324 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