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: translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation") translateModel(Modelica.Blocks.Examples.Modulation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sine.y|sinAM.y|cosAM.y|sinFM.y|cosFM.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008149/0.000815, allocations: 95.84 kB / 296.4 MB, free: 7.035 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002468/0.0002468, allocations: 12 kB / 356.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2188, allocations: 51.3 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.001589/0.2205, allocations: 1.636 MB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007828/0.2213, allocations: 0.5645 MB / 409.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.921e-05/0.2214, allocations: 4 kB / 409.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.2215, allocations: 35.66 kB / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.5e-05/0.2216, allocations: 28.53 kB / 409.8 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.2218, allocations: 50.41 kB / 409.8 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.222, allocations: 171.4 kB / 410 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001546/0.2222, allocations: 48.89 kB / 410 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2223, allocations: 63.66 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.317e-05/0.2224, allocations: 60.86 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.2224, allocations: 4 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.177e-05/0.2225, allocations: 14.48 kB / 410.2 MB, free: 25.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.935e-05/0.2225, allocations: 23.86 kB / 410.2 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.2226, allocations: 53.58 kB / 410.2 MB, free: 25.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.2227, allocations: 120.7 kB / 410.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2227, allocations: 0 / 410.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2227, allocations: 0 / 410.4 MB, free: 24.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2227, allocations: 0 / 410.4 MB, free: 24.99 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.0005677/0.2233, allocations: 467.7 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.2234, allocations: 8.031 kB / 410.8 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002924/0.2237, allocations: 43.7 kB / 410.9 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.2239, allocations: 230.6 kB / 411.1 MB, free: 24.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.2239, allocations: 8 kB / 411.1 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.224, allocations: 19.94 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003004/0.2243, allocations: 164.2 kB / 411.3 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2243, allocations: 4 kB / 411.3 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.2243, allocations: 11.94 kB / 411.3 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2243, allocations: 7.938 kB / 411.3 MB, free: 23.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.2245, allocations: 99.88 kB / 411.4 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007152/0.2252, allocations: 0.641 MB / 412 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001917/0.2255, allocations: 127.8 kB / 412.2 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.937e-05/0.2256, allocations: 70.62 kB / 412.2 MB, free: 22.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.2256, allocations: 3.984 kB / 412.2 MB, free: 22.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.475e-05/0.2256, allocations: 34.56 kB / 412.3 MB, free: 22.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.2256, allocations: 3.938 kB / 412.3 MB, free: 22.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004193/0.226, allocations: 189.4 kB / 412.5 MB, free: 22.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.093e-05/0.2261, allocations: 110.8 kB / 412.6 MB, free: 22.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.2262, allocations: 225 kB / 412.8 MB, free: 22.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.2263, allocations: 29.7 kB / 412.8 MB, free: 22.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.2263, allocations: 136 kB / 412.9 MB, free: 22.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.2263, allocations: 47.39 kB / 413 MB, free: 22.1 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-06/0.2264, allocations: 4 kB / 413 MB, free: 22.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.166e-05/0.2264, allocations: 334.8 kB / 413.3 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.533e-05/0.2265, allocations: 39.98 kB / 413.4 MB, free: 21.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.2266, allocations: 94.78 kB / 413.5 MB, free: 21.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.2267, allocations: 59.97 kB / 413.5 MB, free: 21.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2267, allocations: 0 / 413.5 MB, free: 21.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000275/0.227, allocations: 193.1 kB / 413.7 MB, free: 21.35 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.2271, allocations: 4 kB / 413.7 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.2271, allocations: 8.188 kB / 413.7 MB, free: 21.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2271, allocations: 3.984 kB / 413.7 MB, free: 21.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.2272, allocations: 31.98 kB / 413.8 MB, free: 21.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.2272, allocations: 7.938 kB / 413.8 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.559e-05/0.2273, allocations: 19.83 kB / 413.8 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.2274, allocations: 12 kB / 413.8 MB, free: 21.26 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 7.304e-05/0.2274, allocations: 122.4 kB / 413.9 MB, free: 21.13 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.2275, allocations: 23.77 kB / 413.9 MB, free: 21.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.2279, allocations: 202.6 kB / 414.1 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.2279, allocations: 4.594 kB / 414.1 MB, free: 20.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.2279, allocations: 4 kB / 414.1 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.2279, allocations: 4 kB / 414.1 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003588/0.2283, allocations: 265.4 kB / 414.4 MB, free: 20.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.2283, allocations: 8 kB / 414.4 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.2285, allocations: 35.98 kB / 414.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.2285, allocations: 3.938 kB / 414.4 MB, free: 20.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.2285, allocations: 11.94 kB / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.2285, allocations: 0 / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.2285, allocations: 3.938 kB / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004391/0.229, allocations: 484.8 kB / 414.9 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.707e-05/0.229, allocations: 100.9 kB / 415 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.2291, allocations: 8 kB / 415 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001677/0.2292, allocations: 15.94 kB / 415.1 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.2293, allocations: 7.984 kB / 415.1 MB, free: 19.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.2293, allocations: 8 kB / 415.1 MB, free: 19.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.2294, allocations: 168.5 kB / 415.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2294, allocations: 0 / 415.2 MB, free: 19.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002994/0.2297, allocations: 35.91 kB / 415.3 MB, free: 19.68 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.0001142/0.2299, allocations: 107.2 kB / 415.4 MB, free: 19.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002592/0.2301, allocations: 119.8 kB / 415.5 MB, free: 19.44 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2301, allocations: 0 / 415.5 MB, free: 19.44 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.2302, allocations: 72.28 kB / 415.6 MB, free: 19.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.2306, allocations: 13.14 kB / 415.6 MB, free: 19.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008266/0.2314, allocations: 0.7607 MB / 416.3 MB, free: 18.56 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.2316, allocations: 0.74 MB / 417.1 MB, free: 17.8 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.532e-05/0.2317, allocations: 23.42 kB / 417.1 MB, free: 17.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2317, allocations: 0 / 417.1 MB, free: 17.77 MB / 298.7 MB Notification: Performance of Templates: time 0.002709/0.2344, allocations: 2.091 MB / 419.2 MB, free: 15.68 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.makefile (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 & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.Modulation_res.mat","/var/lib/jenkins/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) Reference file matches