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.001559/0.001559, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001606/0.001606, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.002749, allocations: 59.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3395, allocations: 50.55 MB / 408.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.003494/0.343, allocations: 2.011 MB / 410.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001253/0.3443, allocations: 0.6349 MB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.3445, allocations: 4 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.3447, allocations: 43.53 kB / 411.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.343e-05/0.3448, allocations: 35.61 kB / 411.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002775/0.3451, allocations: 83.83 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002899/0.3454, allocations: 211.2 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001925/0.3456, allocations: 79.97 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001891/0.3458, allocations: 79.62 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3459, allocations: 79.52 kB / 412.1 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.845e-05/0.3459, allocations: 12 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.234e-05/0.346, allocations: 27.98 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.478e-05/0.346, allocations: 31.84 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.579e-05/0.3461, allocations: 87.42 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002592/0.3464, allocations: 178.2 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3464, allocations: 0 / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3464, allocations: 0 / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.3464, allocations: 0 / 412.4 MB, free: 13.86 MB / 334.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.0007134/0.3472, allocations: 0.5022 MB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3472, allocations: 8.031 kB / 412.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.129e-05/0.3473, allocations: 50.67 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002244/0.3475, allocations: 44.77 kB / 413 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003576/0.3479, allocations: 244 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3479, allocations: 8.375 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.3479, allocations: 20.31 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003246/0.3483, allocations: 172.2 kB / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3483, allocations: 0 / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.3483, allocations: 4 kB / 413.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.3483, allocations: 11.92 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.3486, allocations: 83.89 kB / 413.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009999/0.3496, allocations: 0.6373 MB / 414.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002672/0.3499, allocations: 131.8 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.35, allocations: 62.62 kB / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/0.35, allocations: 0 / 414.4 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.3501, allocations: 34.56 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.173e-06/0.3501, allocations: 0 / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005225/0.3506, allocations: 181.5 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.3507, allocations: 106.8 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.3509, allocations: 238.6 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.351, allocations: 29.7 kB / 414.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.793e-05/0.3511, allocations: 140 kB / 415.1 MB, free: 10.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.3512, allocations: 51.58 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-05/0.3512, allocations: 29.7 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3514, allocations: 334.8 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.3515, allocations: 43.97 kB / 415.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.3517, allocations: 90.84 kB / 415.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002738/0.3519, allocations: 146.7 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.352, allocations: 3.938 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003611/0.3523, allocations: 181.9 kB / 415.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3524, allocations: 8 kB / 415.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.3524, allocations: 3.984 kB / 415.9 MB, free: 9.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3524, allocations: 7.984 kB / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001605/0.3526, allocations: 32.05 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.845e-05/0.3526, allocations: 11.92 kB / 416 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.3527, allocations: 28 kB / 416 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3527, allocations: 8 kB / 416 MB, free: 9.891 MB / 334.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.000122/0.3529, allocations: 125.8 kB / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.698e-05/0.3529, allocations: 23.86 kB / 416.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005028/0.3535, allocations: 186.8 kB / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3535, allocations: 0 / 416.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.3535, allocations: 4 kB / 416.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3535, allocations: 4 kB / 416.4 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.354, allocations: 281.3 kB / 416.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.354, allocations: 0 / 416.6 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3542, allocations: 35.91 kB / 416.7 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.3542, allocations: 4 kB / 416.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3542, allocations: 4 kB / 416.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.3543, allocations: 7.938 kB / 416.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3543, allocations: 0 / 416.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005921/0.3549, allocations: 477.6 kB / 417.2 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.672e-05/0.3549, allocations: 97.03 kB / 417.3 MB, free: 8.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.355, allocations: 11.98 kB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001844/0.3552, allocations: 4 kB / 417.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.3552, allocations: 11.98 kB / 417.3 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.3553, allocations: 8 kB / 417.3 MB, free: 8.531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001741/0.3554, allocations: 174 kB / 417.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3555, allocations: 0 / 417.5 MB, free: 8.359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000351/0.3558, allocations: 36 kB / 417.5 MB, free: 8.324 MB / 334.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.0009273/0.3567, allocations: 1.009 MB / 418.5 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003103/0.3571, allocations: 115.9 kB / 418.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3571, allocations: 0 / 418.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.3572, allocations: 60.28 kB / 418.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.3576, allocations: 20.56 kB / 418.7 MB, free: 7.098 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003217/0.3609, allocations: 2.588 MB / 421.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005214/0.3614, allocations: 0.7436 MB / 422 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.584e-05/0.3615, allocations: 21.52 kB / 422 MB, free: 3.582 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.3616, allocations: 75.41 kB / 422.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3617, allocations: 0 / 422.1 MB, free: 3.508 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.3908, allocations: 3.669 MB / 425.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.485/8.876, allocations: 14.45 kB / 425.8 MB, free: 15.89 MB / 350.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.1.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