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: 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.Modulation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001717/0.001717, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.001986/0.001986, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.27/2.27, allocations: 222.9 MB / 241.8 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001819/0.00182, allocations: 46.25 kB / 300.6 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1678, allocations: 49.45 MB / 350.1 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Modulation): time 0.005533/0.1734, allocations: 2.036 MB / 352.1 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1751, allocations: 0.5609 MB / 352.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.1754, allocations: 0 / 352.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002672/0.1757, allocations: 35.66 kB / 352.7 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.1761, allocations: 35.7 kB / 352.7 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004116/0.1765, allocations: 59.91 kB / 352.8 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003909/0.1769, allocations: 187.3 kB / 353 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002816/0.1772, allocations: 76.16 kB / 353 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.1774, allocations: 67.7 kB / 353.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001787/0.1776, allocations: 71.56 kB / 353.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.1777, allocations: 8 kB / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.192e-05/0.1777, allocations: 8 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.136e-05/0.1778, allocations: 23.86 kB / 353.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.1779, allocations: 87.41 kB / 353.3 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1782, allocations: 120 kB / 353.4 MB, free: 1.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.1782, allocations: 3.938 kB / 353.4 MB, free: 1.453 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1782, allocations: 0 / 353.4 MB, free: 1.453 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1782, allocations: 0 / 353.4 MB, free: 1.453 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.001083/0.1793, allocations: 490.5 kB / 353.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.006e-05/0.1794, allocations: 12.03 kB / 353.9 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001214/0.1795, allocations: 24.66 kB / 353.9 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.18, allocations: 239.8 kB / 354.2 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.18, allocations: 8.375 kB / 354.2 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.841e-05/0.1801, allocations: 24.03 kB / 354.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/0.1806, allocations: 160.2 kB / 354.4 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.1807, allocations: 0 / 354.4 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.271e-05/0.1807, allocations: 4 kB / 354.4 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1807, allocations: 4 kB / 354.4 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.1811, allocations: 99.88 kB / 354.5 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001608/0.1828, allocations: 0.6332 MB / 355.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004041/0.1832, allocations: 127.8 kB / 355.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001994/0.1834, allocations: 54.67 kB / 355.3 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.1835, allocations: 11.98 kB / 355.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/0.1835, allocations: 34.56 kB / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 2.064e-06/0.1835, allocations: 0 / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0007889/0.1843, allocations: 181.2 kB / 355.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.1844, allocations: 106.8 kB / 355.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004048/0.1848, allocations: 233.1 kB / 355.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.1849, allocations: 29.7 kB / 355.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.185, allocations: 140 kB / 356 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.423e-05/0.1851, allocations: 43.34 kB / 356 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.1853, allocations: 33.7 kB / 356.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.1855, allocations: 334.8 kB / 356.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001919/0.1857, allocations: 35.97 kB / 356.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002347/0.1859, allocations: 94.84 kB / 356.5 MB, free: 14.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004397/0.1864, allocations: 146.7 kB / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.1864, allocations: 0 / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0006406/0.187, allocations: 189.3 kB / 356.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.1871, allocations: 4 kB / 356.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.1871, allocations: 0 / 356.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.651e-05/0.1871, allocations: 4 kB / 356.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.1874, allocations: 43.84 kB / 356.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.1875, allocations: 0 / 356.9 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.1877, allocations: 19.84 kB / 356.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.51e-05/0.1877, allocations: 4 kB / 356.9 MB, free: 13.62 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.000188/0.1879, allocations: 146.3 kB / 357.1 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001433/0.1881, allocations: 19.72 kB / 357.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006426/0.1887, allocations: 178.8 kB / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1888, allocations: 0 / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.1888, allocations: 4 kB / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1888, allocations: 0 / 357.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008145/0.1896, allocations: 277.4 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.1896, allocations: 0.5625 kB / 357.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004431/0.1901, allocations: 39.91 kB / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.1901, allocations: 4 kB / 357.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.1902, allocations: 8 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.1902, allocations: 3.938 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1902, allocations: 4 kB / 357.6 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009615/0.1912, allocations: 469.6 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.1913, allocations: 104.8 kB / 358.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.263e-05/0.1914, allocations: 8.062 kB / 358.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.1917, allocations: 4 kB / 358.2 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.624e-05/0.1918, allocations: 15.97 kB / 358.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.1919, allocations: 7.938 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002775/0.1921, allocations: 172.4 kB / 358.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1922, allocations: 4 kB / 358.4 MB, free: 12.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007038/0.1929, allocations: 32 kB / 358.4 MB, free: 12.05 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.0001925/0.1931, allocations: 99.19 kB / 358.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005224/0.1936, allocations: 118.3 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1936, allocations: 0 / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002332/0.1939, allocations: 64.59 kB / 358.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008337/0.1947, allocations: 20.88 kB / 358.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001828/0.1966, allocations: 0.7089 MB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005136/0.1971, allocations: 0.74 MB / 360.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1972, allocations: 19.44 kB / 360.2 MB, free: 10.22 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1972, allocations: 4 kB / 360.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of Templates: time 0.006961/0.2042, allocations: 2.115 MB / 362.3 MB, free: 8.094 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Modulation.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.Modulation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches