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.001069/0.001069, allocations: 105.1 kB / 16.92 MB, free: 5.762 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.00111/0.00111, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.425/1.425, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 43.11 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 49.45 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003685/0.1152, allocations: 1.979 MB / 352.1 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1164, allocations: 0.5726 MB / 352.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.1166, allocations: 7.938 kB / 352.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001723/0.1168, allocations: 31.61 kB / 352.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001511/0.117, allocations: 47.52 kB / 352.8 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002712/0.1173, allocations: 71.86 kB / 352.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.1176, allocations: 199.2 kB / 353.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.1177, allocations: 76.22 kB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1179, allocations: 79.64 kB / 353.2 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.118, allocations: 75.56 kB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.783e-05/0.118, allocations: 12 kB / 353.3 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.548e-05/0.1181, allocations: 15.94 kB / 353.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.957e-05/0.1181, allocations: 35.84 kB / 353.3 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1182, allocations: 87.47 kB / 353.4 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000204/0.1184, allocations: 163.6 kB / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1184, allocations: 0 / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1185, allocations: 0 / 353.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.255e-05/0.1185, allocations: 0 / 353.6 MB, free: 0.8633 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.0006692/0.1191, allocations: 0.4945 MB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1192, allocations: 8.031 kB / 354.1 MB, free: 320 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.64e-05/0.1193, allocations: 46.73 kB / 354.1 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.623e-05/0.1193, allocations: 24.66 kB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002598/0.1196, allocations: 228 kB / 354.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.1196, allocations: 12.38 kB / 354.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.583e-05/0.1196, allocations: 19.69 kB / 354.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002992/0.1199, allocations: 172.6 kB / 354.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.12, allocations: 4 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.12, allocations: 8 kB / 354.6 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.12, allocations: 4 kB / 354.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.1202, allocations: 99.12 kB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009285/0.1212, allocations: 0.6332 MB / 355.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1214, allocations: 123.8 kB / 355.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1215, allocations: 54.67 kB / 355.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1216, allocations: 15.92 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.1216, allocations: 34.56 kB / 355.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.1216, allocations: 0 / 355.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004882/0.1221, allocations: 173.4 kB / 355.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.169e-05/0.1222, allocations: 106.8 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002251/0.1224, allocations: 233.1 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1224, allocations: 33.64 kB / 356.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.398e-05/0.1225, allocations: 136 kB / 356.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.1226, allocations: 43.36 kB / 356.3 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.1227, allocations: 33.7 kB / 356.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1228, allocations: 330.8 kB / 356.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.1229, allocations: 43.97 kB / 356.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.1231, allocations: 86.84 kB / 356.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.1233, allocations: 150.7 kB / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1233, allocations: 0 / 356.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003265/0.1237, allocations: 181.4 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1237, allocations: 4 kB / 357.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.727e-06/0.1237, allocations: 8.547 kB / 357.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.1237, allocations: 0 / 357.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.1239, allocations: 43.91 kB / 357.1 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.1239, allocations: 7.938 kB / 357.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.909e-05/0.124, allocations: 15.78 kB / 357.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.124, allocations: 12 kB / 357.2 MB, free: 12.96 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.0001087/0.1241, allocations: 145.7 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.143e-05/0.1242, allocations: 19.72 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003592/0.1246, allocations: 178.8 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.1246, allocations: 4 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1246, allocations: 0 / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.359e-06/0.1246, allocations: 96 / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004251/0.1251, allocations: 281.3 kB / 357.8 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1251, allocations: 7.938 kB / 357.8 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.1253, allocations: 31.97 kB / 357.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1253, allocations: 4 kB / 357.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.659e-05/0.1253, allocations: 4 kB / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1253, allocations: 4 kB / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1253, allocations: 0 / 357.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005162/0.1258, allocations: 481 kB / 358.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.235e-05/0.1259, allocations: 96.81 kB / 358.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.03e-05/0.1259, allocations: 8.062 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.1261, allocations: 4 kB / 358.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.1262, allocations: 11.98 kB / 358.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.183e-05/0.1262, allocations: 11.92 kB / 358.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.1263, allocations: 172.5 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1263, allocations: 4 kB / 358.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003383/0.1267, allocations: 32 kB / 358.6 MB, free: 11.4 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.0007907/0.1275, allocations: 1.01 MB / 359.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002976/0.1278, allocations: 123.9 kB / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1278, allocations: 0 / 359.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.1279, allocations: 67.83 kB / 359.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.1283, allocations: 20.38 kB / 359.8 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.1312, allocations: 2.553 MB / 362.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.1315, allocations: 0.7397 MB / 363.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.528e-05/0.1316, allocations: 17.53 kB / 363.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001002/0.1317, allocations: 71.41 kB / 363.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1317, allocations: 0 / 363.2 MB, free: 6.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02063/0.1523, allocations: 3.538 MB / 366.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/7.805, allocations: 18.86 kB / 366.8 MB, free: 3.105 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