Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Modulation,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Modulation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009794/0.0009794, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 244.7 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008545/0.0008547, allocations: 99.97 kB / 296.7 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002486, allocations: 4 kB / 356.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2064, allocations: 51.3 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.001709/0.2082, allocations: 1.635 MB / 409.8 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.2094, allocations: 0.5717 MB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001647/0.2096, allocations: 1 kB / 410.3 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.2098, allocations: 27.67 kB / 410.4 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.896e-05/0.2099, allocations: 38.17 kB / 410.4 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.2101, allocations: 43.95 kB / 410.4 MB, free: 25.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.2103, allocations: 187.2 kB / 410.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.2105, allocations: 60.62 kB / 410.7 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.2107, allocations: 67.7 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001437/0.2109, allocations: 61.8 kB / 410.8 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.2109, allocations: 7.938 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.211, allocations: 8 kB / 410.8 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.336e-05/0.211, allocations: 27.84 kB / 410.9 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.2112, allocations: 93.19 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001776/0.2113, allocations: 119.7 kB / 411.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.2114, allocations: 0 / 411.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2114, allocations: 0 / 411.1 MB, free: 24.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.2114, allocations: 4 kB / 411.1 MB, free: 24.77 MB / 298.7 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.0005581/0.212, allocations: 465.7 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.212, allocations: 8.031 kB / 411.5 MB, free: 24.27 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.254e-05/0.2121, allocations: 46.75 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.2123, allocations: 44.62 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.2125, allocations: 243.7 kB / 411.9 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.2126, allocations: 8.375 kB / 411.9 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.261e-05/0.2126, allocations: 16.38 kB / 411.9 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.2129, allocations: 164.3 kB / 412 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.2129, allocations: 4 kB / 412 MB, free: 23.69 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.2129, allocations: 7.938 kB / 412 MB, free: 23.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.213, allocations: 8 kB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.2132, allocations: 91.88 kB / 412.1 MB, free: 23.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008925/0.2141, allocations: 0.6411 MB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.2143, allocations: 147.7 kB / 412.9 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.2144, allocations: 58.67 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.2144, allocations: 3.984 kB / 413 MB, free: 22.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.942e-05/0.2145, allocations: 34.56 kB / 413 MB, free: 22.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.044e-06/0.2145, allocations: 4 kB / 413 MB, free: 22.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004827/0.215, allocations: 189.7 kB / 413.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.215, allocations: 106.8 kB / 413.3 MB, free: 22.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.2152, allocations: 237.1 kB / 413.6 MB, free: 22.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.2152, allocations: 25.7 kB / 413.6 MB, free: 22 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/0.2153, allocations: 136 kB / 413.7 MB, free: 21.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.657e-05/0.2153, allocations: 43.36 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-06/0.2153, allocations: 4 kB / 413.8 MB, free: 21.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.2154, allocations: 330.8 kB / 414.1 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001885/0.2156, allocations: 39.97 kB / 414.1 MB, free: 21.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.2157, allocations: 102.8 kB / 414.2 MB, free: 21.32 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.216, allocations: 150.7 kB / 414.4 MB, free: 21.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.216, allocations: 11.94 kB / 414.4 MB, free: 21.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003092/0.2163, allocations: 181.2 kB / 414.6 MB, free: 20.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2163, allocations: 8 kB / 414.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.2163, allocations: 0 / 414.6 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.057e-05/0.2164, allocations: 8.188 kB / 414.6 MB, free: 20.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.2166, allocations: 35.92 kB / 414.6 MB, free: 20.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.2166, allocations: 7.984 kB / 414.6 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2167, allocations: 27.69 kB / 414.6 MB, free: 20.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.2167, allocations: 4 kB / 414.6 MB, free: 20.87 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.773e-05/0.2168, allocations: 133.8 kB / 414.8 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/0.2169, allocations: 23.75 kB / 414.8 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/0.2172, allocations: 190.8 kB / 415 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2172, allocations: 4 kB / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2172, allocations: 0 / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.2173, allocations: 0 / 415 MB, free: 20.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004409/0.2177, allocations: 273.4 kB / 415.3 MB, free: 20.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.2177, allocations: 7.938 kB / 415.3 MB, free: 20.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.2179, allocations: 39.91 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.2179, allocations: 0 / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.2179, allocations: 8 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.327e-06/0.2179, allocations: 0 / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.2179, allocations: 4 kB / 415.3 MB, free: 20.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004453/0.2184, allocations: 487.9 kB / 415.8 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.2185, allocations: 100.8 kB / 415.9 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.2185, allocations: 8.062 kB / 415.9 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001693/0.2187, allocations: 8.25 kB / 415.9 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.291e-05/0.2187, allocations: 19.92 kB / 415.9 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.2188, allocations: 11.98 kB / 415.9 MB, free: 19.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.2189, allocations: 164.5 kB / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.219, allocations: 0 / 416.1 MB, free: 19.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005448/0.2195, allocations: 32 kB / 416.1 MB, free: 19.29 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006369/0.2202, allocations: 1.011 MB / 417.1 MB, free: 18.24 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002656/0.2204, allocations: 120 kB / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2205, allocations: 0 / 417.3 MB, free: 18.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.2206, allocations: 80.52 kB / 417.3 MB, free: 18.05 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003938/0.221, allocations: 17.22 kB / 417.4 MB, free: 18.03 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002112/0.2231, allocations: 1.568 MB / 418.9 MB, free: 16.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.2233, allocations: 0.74 MB / 419.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.997e-05/0.2234, allocations: 71.34 kB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2234, allocations: 4 kB / 419.7 MB, free: 15.54 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.509/2.733, allocations: 2.731 MB / 422.5 MB, free: 12.8 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_Modulation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_Modulation.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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.amplitude_internal,cosAM.constantAmplitude,cosAM.constantFrequency,cosAM.f_constant.k,cosAM.f_constant.y,cosAM.f_internal,cosAM.offset,cosAM.phi,cosAM.useConstantAmplitude,cosAM.useConstantFrequency,cosAM.y,cosFM.amplitude_constant.k,cosFM.amplitude_constant.y,cosFM.amplitude_internal,cosFM.constantAmplitude,cosFM.constantFrequency,cosFM.f,cosFM.f_internal,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.amplitude_internal,sinAM.constantAmplitude,sinAM.constantFrequency,sinAM.f_constant.k,sinAM.f_constant.y,sinAM.f_internal,sinAM.offset,sinAM.phi,sinAM.useConstantAmplitude,sinAM.useConstantFrequency,sinAM.y,sinFM.amplitude_constant.k,sinFM.amplitude_constant.y,sinFM.amplitude_internal,sinFM.constantAmplitude,sinFM.constantFrequency,sinFM.f,sinFM.f_internal,sinFM.offset,sinFM.phi,sinFM.useConstantAmplitude,sinFM.useConstantFrequency,sinFM.y,sine.amplitude_constant.k,sine.amplitude_constant.y,sine.amplitude_internal,sine.constantAmplitude,sine.constantFrequency,sine.f_constant.k,sine.f_constant.y,sine.f_internal,sine.offset,sine.phi,sine.useConstantAmplitude,sine.useConstantFrequency,sine.y,time