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.001317/0.001317, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.001759/0.001759, allocations: 177 kB / 17.56 MB, free: 6.18 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.54/1.54, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003192/0.0003191, allocations: 8 kB / 301.5 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.13, allocations: 50.42 MB / 351.9 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.002473/0.1326, allocations: 1.677 MB / 353.6 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.1338, allocations: 0.5532 MB / 354.2 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002014/0.134, allocations: 7.938 kB / 354.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001918/0.1342, allocations: 35.66 kB / 354.2 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001605/0.1344, allocations: 27.72 kB / 354.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.1347, allocations: 59.88 kB / 354.3 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002857/0.135, allocations: 195.2 kB / 354.5 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.1352, allocations: 68.34 kB / 354.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.1354, allocations: 59.72 kB / 354.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.1355, allocations: 67.56 kB / 354.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.1356, allocations: 4 kB / 354.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.033e-05/0.1356, allocations: 4 kB / 354.7 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.78e-05/0.1356, allocations: 27.86 kB / 354.7 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.47e-05/0.1357, allocations: 93.12 kB / 354.8 MB, free: 496 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002048/0.136, allocations: 159.6 kB / 355 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.136, allocations: 0 / 355 MB, free: 336 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.136, allocations: 0 / 355 MB, free: 336 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.136, allocations: 0 / 355 MB, free: 336 kB / 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.0007192/0.1367, allocations: 478.6 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.821e-05/0.1368, allocations: 8.031 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.876e-05/0.1368, allocations: 46.73 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.1369, allocations: 28.59 kB / 355.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.1372, allocations: 227.9 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.1373, allocations: 12.38 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.1373, allocations: 19.94 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.1377, allocations: 164.2 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.1377, allocations: 0 / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.1377, allocations: 8 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1377, allocations: 4 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/0.138, allocations: 103.9 kB / 356 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001154/0.1391, allocations: 0.6371 MB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.1394, allocations: 127.8 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.1396, allocations: 62.67 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1396, allocations: 4 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.022e-05/0.1396, allocations: 34.56 kB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.653e-06/0.1397, allocations: 0 / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005645/0.1402, allocations: 193.4 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.521e-05/0.1403, allocations: 102.8 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.1406, allocations: 229 kB / 357.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.1406, allocations: 33.7 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.182e-05/0.1407, allocations: 136 kB / 357.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.193e-05/0.1408, allocations: 43.27 kB / 357.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.1408, allocations: 25.7 kB / 357.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.141, allocations: 338.8 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001209/0.1411, allocations: 39.98 kB / 358 MB, free: 13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1413, allocations: 106.7 kB / 358.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002856/0.1416, allocations: 151.3 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1416, allocations: 0 / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003882/0.142, allocations: 201.1 kB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.142, allocations: 6.812 kB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.142, allocations: 4 kB / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.142, allocations: 0 / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001561/0.1422, allocations: 40.09 kB / 358.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.634e-05/0.1422, allocations: 8 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1423, allocations: 19.84 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.1424, allocations: 11.98 kB / 358.6 MB, free: 12.41 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.0001364/0.1425, allocations: 138.2 kB / 358.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.266e-05/0.1426, allocations: 19.75 kB / 358.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004114/0.143, allocations: 190.8 kB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.143, allocations: 0 / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.143, allocations: 4 kB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1431, allocations: 3.984 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000472/0.1435, allocations: 269.4 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1436, allocations: 0 / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001848/0.1437, allocations: 43.91 kB / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1438, allocations: 0 / 359.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1438, allocations: 8 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.1438, allocations: 0 / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.1438, allocations: 0 / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006167/0.1444, allocations: 489.6 kB / 359.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.486e-05/0.1445, allocations: 96.81 kB / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.353e-05/0.1446, allocations: 8.062 kB / 359.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1447, allocations: 4 kB / 359.8 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.941e-05/0.1448, allocations: 27.91 kB / 359.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.1448, allocations: 7.938 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.145, allocations: 172.5 kB / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.145, allocations: 0 / 360 MB, free: 10.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003523/0.1454, allocations: 28 kB / 360 MB, free: 10.83 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.001029/0.1464, allocations: 1.011 MB / 361 MB, free: 9.789 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003833/0.1468, allocations: 123.8 kB / 361.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.1468, allocations: 4 kB / 361.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.147, allocations: 71.83 kB / 361.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.1475, allocations: 23.81 kB / 361.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003767/0.1512, allocations: 2.714 MB / 364 MB, free: 6.727 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.1517, allocations: 0.7399 MB / 364.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.584e-05/0.1518, allocations: 17.55 kB / 364.7 MB, free: 5.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.1519, allocations: 75.39 kB / 364.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of SimCode: time 9.02e-07/0.1519, allocations: 0 / 364.8 MB, free: 5.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01745/0.1694, allocations: 3.234 MB / 368 MB, free: 2.738 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.1696, allocations: 182.9 kB / 368.2 MB, free: 2.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/2.24, allocations: 4 kB / 368.2 MB, free: 2.48 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