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.001361/0.00136, allocations: 109.6 kB / 17.32 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001656/0.001656, allocations: 205.8 kB / 18.26 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.4 MB / 246.4 MB, free: 9.145 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 54.34 kB / 306.5 MB, free: 0.6406 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1025, allocations: 50.54 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003883/0.1064, allocations: 2.06 MB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.108, allocations: 0.6272 MB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.1083, allocations: 7.938 kB / 359.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002817/0.1086, allocations: 23.73 kB / 359.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.109, allocations: 31.72 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005126/0.1095, allocations: 75.86 kB / 359.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.11, allocations: 207.1 kB / 360.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.1103, allocations: 76.34 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.1105, allocations: 83.64 kB / 360.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.1107, allocations: 79.5 kB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.844e-05/0.1107, allocations: 12 kB / 360.4 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.627e-05/0.1108, allocations: 16 kB / 360.4 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.933e-05/0.1109, allocations: 39.84 kB / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.111, allocations: 83.47 kB / 360.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002493/0.1112, allocations: 167.6 kB / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.1112, allocations: 0 / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.195e-05/0.1113, allocations: 0 / 360.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.1113, allocations: 7.938 kB / 360.7 MB, free: 10.5 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.0007823/0.1121, allocations: 0.4945 MB / 361.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.1121, allocations: 8.031 kB / 361.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.524e-05/0.1122, allocations: 42.75 kB / 361.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.1124, allocations: 48.62 kB / 361.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.1128, allocations: 239.8 kB / 361.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.1128, allocations: 12.38 kB / 361.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.573e-05/0.1129, allocations: 12.38 kB / 361.5 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003192/0.1132, allocations: 168.2 kB / 361.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1132, allocations: 0 / 361.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.1132, allocations: 4 kB / 361.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.535e-06/0.1133, allocations: 4 kB / 361.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.1135, allocations: 91.89 kB / 361.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.1145, allocations: 0.6333 MB / 362.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002467/0.1148, allocations: 131.8 kB / 362.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.1149, allocations: 58.61 kB / 362.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1149, allocations: 0 / 362.6 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.856e-05/0.115, allocations: 46.55 kB / 362.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.115, allocations: 0 / 362.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005068/0.1155, allocations: 181.2 kB / 362.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.1156, allocations: 106.8 kB / 362.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.1158, allocations: 242.6 kB / 363.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.1159, allocations: 29.83 kB / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.509e-05/0.116, allocations: 140 kB / 363.3 MB, free: 7.578 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.116, allocations: 43.3 kB / 363.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.1161, allocations: 33.7 kB / 363.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1162, allocations: 334.8 kB / 363.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.1163, allocations: 39.97 kB / 363.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001353/0.1165, allocations: 90.84 kB / 363.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002672/0.1167, allocations: 146.7 kB / 364 MB, free: 6.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.1168, allocations: 3.938 kB / 364 MB, free: 6.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003636/0.1171, allocations: 181.2 kB / 364.2 MB, free: 6.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1172, allocations: 12.19 kB / 364.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.1172, allocations: 0 / 364.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.1172, allocations: 4 kB / 364.2 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1174, allocations: 35.92 kB / 364.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.1174, allocations: 11.97 kB / 364.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001184/0.1175, allocations: 15.84 kB / 364.3 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.676e-05/0.1175, allocations: 4 kB / 364.3 MB, free: 6.57 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.0001286/0.1177, allocations: 137.7 kB / 364.4 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.309e-05/0.1177, allocations: 27.7 kB / 364.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004039/0.1182, allocations: 186.8 kB / 364.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1182, allocations: 0 / 364.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.1182, allocations: 4 kB / 364.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1182, allocations: 0 / 364.6 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004671/0.1187, allocations: 277.9 kB / 364.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1187, allocations: 0 / 364.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002001/0.1189, allocations: 35.97 kB / 364.9 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/0.1189, allocations: 8 kB / 364.9 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.1189, allocations: 4 kB / 364.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1189, allocations: 4 kB / 364.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1189, allocations: 0 / 364.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005911/0.1195, allocations: 483.7 kB / 365.4 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/0.1196, allocations: 100.9 kB / 365.5 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.1197, allocations: 4 kB / 365.5 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.1198, allocations: 8 kB / 365.5 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.1199, allocations: 7.984 kB / 365.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.1199, allocations: 7.984 kB / 365.5 MB, free: 5.203 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001768/0.1201, allocations: 174 kB / 365.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1201, allocations: 0 / 365.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003573/0.1205, allocations: 35.94 kB / 365.7 MB, free: 4.996 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.0008445/0.1213, allocations: 1.008 MB / 366.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003083/0.1217, allocations: 128.1 kB / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1217, allocations: 0 / 366.9 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1218, allocations: 63.84 kB / 366.9 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.1222, allocations: 24.7 kB / 366.9 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003279/0.1255, allocations: 2.633 MB / 369.6 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.1259, allocations: 0.7512 MB / 370.3 MB, free: 212 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.401e-05/0.126, allocations: 21.53 kB / 370.4 MB, free: 192 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.1261, allocations: 71.41 kB / 370.4 MB, free: 120 kB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1261, allocations: 0 / 370.4 MB, free: 120 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2124/0.3385, allocations: 3.474 MB / 373.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.3387, allocations: 186.5 kB / 374.1 MB, free: 19.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.048/2.387, allocations: 0 / 374.1 MB, free: 19.81 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